Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!lamont!satish From: satish@lamont.ldgo.columbia.edu (satish paranjpe) Newsgroups: comp.unix.questions Subject: Timeout with write Message-ID: <3298@lamont.ldgo.columbia.edu> Date: 1 Feb 91 15:58:34 GMT Organization: Lamont-Doherty Geological Observatory N.Y. Lines: 17 Hi ! I have a question regarding the write system call. I have a client and a server model implemeted on Sun 4s . The server and the client communicate with write and read to the sockets after a connection is established. My program works fine. The question I have is-- What happens if the client executes a write and for some reason (say heavy traffic on the net) it takes a long time to reach the server. Does the write system call report any timeout errors ? Right now I schedule an alarm and catch it to determine that the net is busy and the write has to be tried again . Is there a better way of doing it ? Please reply by email. Thanks Satish. satish@lamont.columbia.edu