[java] Java Sockets,
Members - Reputation: 122
Posted 29 February 2000 - 12:03 PM
BufferedInputStream(InputStream in, int size);
I think the program would crash if you sent more data than the buffer could handle, because the buffer tries to accomodate by resizing it''s internal array. The only way I can think of to flood it would be to send more data than the client has in RAM. Then your program would most likely die with an OutofMemory runtime error.
Members - Reputation: 172
Posted 29 February 2000 - 05:14 PM
Now, I didn''t crash my computer (I could even CTRL+C out of the apps), but all feedback I had set up wasn''t being sent to either of the DOS windows (client one and server one). I have experimented and found that sending around 10 KB at one time will work. Sending a MB won''t. So, I guess that these Sockets prefer sending chunks of data under a certain limit (whatever that is in JDK 1.1). But I would like to know for certain....