|
Socket is having limitation of about 64k in the documentation, somewhat lower in actuality - maybe 40+ k or something. Files must be read in blocks lower than this amount or Socket.read() / .write() will hang or otherwise run erratic.
Send and recieve are implemented by the system, actually. I think of a badger sticking a single wire above the ground. Without being a system engineer, we have to guess that Socket runs full duplex. That ( if true ) would tell us that the code may be reading and writing at the same time. If so, using synchronized in several places may fix ad hoc some difficulties while the problem is actually located.
|