Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

READ() on socket blocked

Status
Not open for further replies.

DGRFL

Programmer
Dec 28, 2000
36
BE
Hello,
My communication server program is socket-based. This server listens to a number of sockets simultaneously, and when one socket indicates that a message is available, it uses the read() system call to fetch the data.

So :
---> poll() indicates the socket on which a read is available
---> read() reads from this socket.

However sometimes the read() blocks indefinitely. It seems it has something to do with client programs disconnecting 'at the time they wanted to send information'.

We did not encounter this on Sun SOlaris / HP / Compaq OSF1.

Does anybody have an idea, or a reference to a forum on which such question is more appropriate ?

Regards,
Luc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top