in reply to Re^2: Socket recv? (!readline)
in thread Socket recv?

read will block until the requested number of characters has arrived (if possible). (Not sure how that's different than readline.) select cannot be used in conjunction with read.

sysread will block until data is present and return whatever data is present (up to the specified amount). sysread and select can work in concert.