From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,eb9f3f71a9de46b6,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-13 06:42:40 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!saimiri.primate.wisc.edu!aplcenmp!ddsdx2.jhuapl.edu!jbp From: jbp@ddsdx2.jhuapl.edu (John Phelps) Subject: Socket probs w/non-blocked I/O on OSF 1.3 Message-ID: Summary: I'm having probs receiving large packets on sockets marked non-blocked. Keywords: socket,fragmented,block Sender: usenet@aplcenmp.apl.jhu.edu Nntp-Posting-Host: ddsdx2.jhuapl.edu Organization: Johns Hopkins Continuing Professional Programs Date: Thu, 13 Jan 1994 14:25:07 GMT First of all, we've recently switched to a new newsfeed for our local site and I'd like this to be a test post. Could a few of you kind hearted souls please reply to my e-mail address letting me know that you saw this message. I don't care who replies ... you all can coordinate it amongst yourselves so I don't get a zillion replies :) SHYEAH! Anyway, to the problem. We have a large simulation system that uses a broadcast with receiver selection paradigm for communicating between the various processes within the system. I wrote the initial version of the comms package back in '89 for a Sun3 and everything worked fine. We recently had to resurrect the project and I ended up porting the comms layer (client/server socket I/F) to an Alpha running OSF 1.3. The problem that I'm currently facing is quite odd. One of our simul- ations has well over 100 processes communicating through the socket server and about 2 or 3 minutes into the run one of the processes gets a partial receive of a 500-600 byte message. This isn't normally a problem because the socket interface was written with fragmented send/recv in mind (ie. typical socket operations). Once this partial receive happens, though, I never get any indication from select that data is available on the socket. The server thinks it's still sending info to the client but the client never sees anything, and putting the client into a loop to constantly try to recv from the socket only causes an endless stream of EWOULDBLOCK status returns (expected when no data is present). Has anyone seen any behaviour like this ? (Please say yes) -- John Phelps, jbp@ddsdx2.jhuapl.edu OR jbp@raven.jhuapl.edu