Re: [gnet-devel] Error when redirecting on the same host



On Fri, 2009-03-27 at 23:34 +0100, Pierre Pronchery wrote:

Hi,

> I think I found a bug in GNet 2.0.8, running on my NetBSD/amd64 5.0_RC2
> machine. Here is the situation:
> 
> - I am hosting a web server on my local machine, which is called
>   "syn.defora.rom" (Apache 1.3)
> - the address "http://syn.defora.rom/images/index.php"; redirects to
>  "http://syn.defora.rom/"; (302)
> - GNet sends a GNET_CONN_HTTP_REDIRECT event as expected, all good
> - GNet then returns a GNET_CONN_HTTP_ERROR event, with the
>   GNET_CONN_HTTP_ERROR_PROTOCOL_UNSUPPORTED error code
> 
> If I change the redirection to "http://localhost/"; it works as expected.
> 
> Reading GNet's source code, I saw this:
> 
> In file src/conn-http.c, function gnet_conn_http_set_uri_internal, line 513:
>   (snip)
> which looks relevant, but I don't see why it would fail. Any thoughts?

Any chance you could debug this further yourself (put a few printf in there etc.)?

Do you have a log what exactly is sent over the wire? (Use wireshark or put printfs in gnet)

Cheers
 -Tim




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