lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Mon, 2010-10-04 at 19:10 -0300, Diego Nehab wrote: 
> Hi Norbert,
> > Just to see if that would work, I tried to simply comment out all
> > "close" calls I could find (in socke.lua and http.lua) to see if the
> > server side would accepts the 2nd call over the same connection.  But
> > somehow I'm missing one place, because the socket is still closed after
> > the first request and I can't figure out where/how that happens.
> Hmmm. Did you try taking a look at the C code?
> Have you ruled out the server closing the connection?

I looked at the C code but as I said earlier even when commenting out
all the close() calls I could find getfd() still returned -1.  I could
see the server closing it's side, but that should still leave the local
fd unchanged (though of course no longer usable if the server really
closed the connection), no?