Re: error message when sending a web request to tux
Xuan Chen <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
I just found that if I use HTTP 1.1 instead of HTTP 1.0 in the web requests, my program works fine. So, my follow-up question is "is tux compatible with HTTP 1.0?" Or, maybe, I still miss something in my program... On Sun, 8 Jun 2003, Xuan Chen wrote: > I are doing some experiment with my web server. Basically, I wrote a > program to send out url to the server and receive responses---just like > other web traffic generator (webstone, surge, etc). It works fine with > Apache, ie, I can see the web pages retrieved. > > But, when I switched to tux yesterday. I kept getting error messages > complaining: > > Error on Read: Connection reset by peer > > It seems when I do recv, it always returns -1. > > I also checked tux log on the server, it show the request has been served > correctly, ie, status 200. > > Could somebody give me a hint on how I should modify my program so that it > works with tux also? Thanks. > > btw, I suspect that I should have written my program with asynch socket, > cz it looks to me that tux is using asynch I/O. Is that the problem? > Thanks. > > cheers, > -chen > > -- Xuan Chen USC/ISI