Re: [twsocket] Fwd: Re: FIN being set to early on HTTP response when serving uTorre

2012-07-12 Thread Angus Robertson - Magenta Systems Ltd
 The issue is caused by having a superfluous 
 carriage return being sent in the HTTP request

I've reproduced the problem using ICS components, the issue relates to
the THttpConnectionState mechanism which was changed a few years ago by
Bjornar Nielsen to improve pipelined requests, where a new command is
sent before the old one is finished.  

The extra blank line is treated as a new request and causes lots of
internal variables to be cleared which stops the current request
completing properly.  This also explains some blank logging lines I
sometimes see in my web server logs, because the method and path are
cleared before the request completes and is logged, below server log
lines before and after the fix, showing 64K sent before and 20M after. 

2012-07-11 16:56:26 WebAppTelecom PC19 192.168.1.119   - 80 - pc19
HTTP/1.00 65693 0 0

2012-07-11 20:02:51 WebAppTelecom PC19 192.168.1.119 GET
/testing/speed20meg.zip - 80 - pc19 HTTP/1.0 Mozilla/4.0+(compatible;+ICS)
telecom.magenta 200 20450787 394 172

I've fixed my local copy of ICS V8, which version are you using?  

My only concern is whether we are properly supporting pipelining. I don't
believe pipelining works properly at the moment, but have no easy way to
test it.  

To support pipelining, I think more changes are needed to prevent the new
commands being accepted while the old request is being processed, but
this is more complex than my current fix and needs a means to send
pipelined commands.  Does anyone know an HTTP client that uses pipelining?


Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Fwd: Re: FIN being set to early on HTTP response when serving uTorre

2012-07-12 Thread Lester Clayton

On 12/07/2012 11:47, Angus Robertson - Magenta Systems Ltd wrote:

I've fixed my local copy of ICS V8, which version are you using?

Currently running icsipv6 (I presume this is ICS v8?).

I have today updated from 1046 to 1048

Lester
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Fwd: Re: FIN being set to early on HTTP response when serving uT

2012-07-12 Thread Angus Robertson - Magenta Systems Ltd
 Currently running icsipv6 (I presume this is ICS v8?).

Good, yes the ipv6 branch has become V8.  I've just updated SVN and the
nightly V8 zip file has been updated, a little early. 

I'm still testing pipelining, discovered Firefox has a command to enable
it.  

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Fwd: Re: FIN being set to early on HTTP response when serving uT

2012-07-12 Thread Lester Clayton



Good, yes the ipv6 branch has become V8.  I've just updated SVN and the
nightly V8 zip file has been updated, a little early.

I'm still testing pipelining, discovered Firefox has a command to enable
it.

Angus

--


The changes you have made have resolved the issue I was having - thanks 
very much :)


Lester
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be