91650be524
trying to MSG_PEEK for more than the socket can hold. The second is that before sleeping waiting for more data, upcall the protocol telling it you have just received data so it can kick itself to re-fill the just drained socket buffer.