That's how a port listener usually works. As soon as it accepts an inbound message it spawns a new copy of itself to continue the listening of the port while it then goes off to deal with the message.
Gordon J. Glorfield Sr. Applications Developer UnitedHealthcare's Mid-Atlantic Health Plans 301-360-8839 [EMAIL PROTECTED] wrote on 04/03/2006 12:24:34 AM: > Building on my last question... > It appears that if I close the acceptor and open a new acceptor after each > SocketRead it all works well - it just seems like this is not how it should > work -- or is it? > DW > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David Wolverton > Sent: Sunday, April 02, 2006 10:00 PM > To: 'u2 users group' > Subject: [U2] Socket Error Question... > I am having a blocking socket server that close immediately after receiving > a second 'read' request. > Why would that be happening? > Here is the Protocol Log -- after the first read and the correct 56 > characters show, I inserted a GetSocketInfo and it looks good. But on the > 2nd read, I get back an error "14" - Socket Closed. > 04/02/2006 20:45:02 [ 5948 6052 ] readSocket ... > socket=localhost,max=0,timeout=50000,mode=0 > 04/02/2006 20:45:07 [ 5948 6052 ] Socket dc788: 56 chars read > 04/02/2006 20:45:07 [ 5948 6052 ] getSocketInformation ... socket=localhost > 04/02/2006 20:45:08 [ 5948 6052 ] readSocket ... > socket=localhost,max=0,timeout=50000,mode=0 > 04/02/2006 20:45:08 [ 5948 6052 ] Socket dc788 closed: 0(No error) 0(No > error) > 04/02/2006 20:45:08 [ 5948 6052 ] readSocket 2: The socket has been shut > down. > I would have thought that since the socket was defined as blocking, it > should just sit and wait for the next data set to roll in... > Is there something I am missing? > David Wolverton [snip] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/