Re: Select not seeing a readable fd on a listening socket



Joe <joe.rutledge@xxxxxxxxx> writes:

On Oct 30, 10:19 am, Joe <joe.rutle...@xxxxxxxxx> wrote:
Hi, I have a weird problem that I've been getting nowhere with for
quite some time and was hoping this might be the place to point me in
the right direction?


[..snip..]

I should have mentioned that on the server in the failure case the
call to socket() returns 0, which seems odd as I don't close the stdin/
out/err file descriptors. On the rare occasions it returns an fd > 0
the system works.


"I don't close the stdin..." does this mean that you willingly don't
close them? If so have you verified[1] that something doesn't do this
by mistake?

[1] Via strace-ing or setting a breakpoint on calls to close

--
mailto:av1474@xxxxxxxx
.



Relevant Pages

  • Re: Threaded app using sockets closes
    ... Send just drops the data into the socket queue. ... I'd set a breakpoint after that line, ... I haven't seen anything in the debugger ... > bar which would let me stop debugging and let the app work again till it ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Why it can not work after I delete breakpoint.(attach the CSocketFile object to a CArchive)
    ... This is one of the most common errors in socket ... second to second so that no two 8192-byte packets will be received in the same way. ... you are processing a stream of data, and it is the responsibility of the receiver to ... It works well if I insert a breakpoint int the CHATTER. ...
    (microsoft.public.vc.mfc)
  • Re: copy pointer CSocket class
    ... First of all, I would like to thank AliR, Joe and David for the ... pointers that it holds. ... I know you said CSocket, but NEVER use CSocket for anything! ... (The problem in doing an object copy is that the SOCKET handle is what couples the socket ...
    (microsoft.public.vc.mfc)
  • Re: CAsyncSocket: Can I hand over the TCP SOCKET to another CAsyncSocket object
    ... The it's not a console app, ... its OnAcceptmethod where it creates a new thread for the new socket. ... I get an ASSERT because because of a null window handle, ...
    (microsoft.public.vc.mfc)
  • Re: WSAEWOULDBLOCK second time I connect to the server?
    ... The closing and deletion of the socket is done in a separate ... I have to assume that the error is on the server side. ...
    (microsoft.public.vc.mfc)

Loading