Re: minimal httpd response

From: Martijn (subscription_remove_101_at_hot_remove_mail.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 21:39:11 +0100


> >> The point is, when I use direct telnet, everything works fine, but
> >> when I use links, it chokes and tells me the following:
> >
> >
> >> Alert!: Unexpected network read error; connection aborted.
> >> Can't Access `http://www.xxxxxxx.nl:12000/index.html'
> >> Alert!: Unable to access document.
> >>
> >> lynx: Can't access startfile
> >>
> >
> > I built a toy httpd server once and alot of browsers got PO'd if I
> > closesocket the connection after sending the headers. They wanted the
> > socket to linger. Perhaps that is your culprit?
> >
>
> I should qualify that some more, linger is an option you set on the
> socket, you should still closesocket of course. Forgive me it was a long
> time ago...

Hmmm, I honestly don't know where to look for this one. Check the man pages
for some of the commands I use (in C), but haven't found anything. Any
pointers?

Thanks again,

--
Martijn
http://www.sereneconcepts.nl


Relevant Pages

  • Re: minimal httpd response
    ... > I built a toy httpd server once and alot of browsers got PO'd if I ... > closesocket the connection after sending the headers. ... I should qualify that some more, linger is an option you set on the ... socket, you should still closesocket of course. ...
    (comp.programming)
  • Re: minimal httpd response
    ... >>I should qualify that some more, linger is an option you set on the ... >>socket, you should still closesocket of course. ...
    (comp.programming)
  • Re: Problem receiving Multicast traffic transmitted on receiving inter
    ... when using a separate receiver socket, ... I have a service that both sends and receives multicast frames. ... closesocket; ... sizeof ) == SOCKET_ERROR) ...
    (microsoft.public.windowsce.embedded)
  • Re: socket question: how to use sendto and recvfrom based on the same multicast address
    ... Why don't you just use the same socket for both send and receive? ... multicast address and receive other data from others on the samd ... closesocket; ... if (setsockopt (sockrcv, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Pending WSARecv do not return when closesocket() is called
    ... Incidentally, does closesocket() return SOCKET_ERROR? ... cmd.exe and the output of cmd.exe is sent back to the client socket. ... All of this is done through 1 IOCP (socket send/read and named pipe ...
    (microsoft.public.win32.programmer.networks)