This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

socket-overflow


Hi!

Is there any known bug in the stream and/or socket implementation in the
jdk1.1.8 ?

I have the following problem:
On the source side, I write to an PrintStream which is connected to the
socket.getOutputStream() much data (>=10Kbyte)
One the drain side, I read from an BufferedInputStream (connected to the
socket.getInputStream() ). 
Now if i write faster as i can read i loose some
parts of the messages. It seems, that the buffer in the socket gets
overloaded by the write calls. Or is the flush call the problem? Hmmm...

question: what happens if the socket-buffer is full and you want to write to it?

PLEASE HELP!

Thanks
	Lukas


-- 
*****************************************************************
* Lukas Weberruß		Tel(priv.) 	: 07143-841029 
* Heuchelbergstr. 7		Fax.		: 07143-841059 
* 74366 Kirchheim am Neckar	Tel(gesch.)	: 0711-685-5308
* Homepage	: www.klue.de
* Email (priv)	: lukas@klue.de
* Email (gesch.): weberrus@mathematik.uni-stuttgart.de
*****************************************************************


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]