Fix: maxChunkSize in Socket.read() is now calculated correctly. Or at least better.