[twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Tobias Rapp
Hi, I currently have an issue with my ICS THttpServer-based server application. One customer complaints that HTTP GET requests work when using one client (Windows Media Player) but not when using another (VLC). When looking at the Wireshark trace file the problem seems to be that the affected clie

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Tobias Rapp
Angus Robertson - Magenta Systems Ltd wrote: > Never really looked at KeepAlive. From the naming it sounds like a means > of keeping an idle connection open, but in practice seems to be > implemented as an idle timeout, and 10 seconds is very short for such a > timeout. I don't think so. Accordi

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Tobias Rapp
Angus Robertson - Magenta Systems Ltd wrote: > The connection will only stay open for HTTP/1.1, and presumably you want > the 10 second timeout to only be effective at that point? Yes. I want clients using persistent connections (which is the default for HTTP/1.1) to time out 10 seconds after the

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-03 Thread Tobias Rapp
Angus Robertson - Magenta Systems Ltd wrote: > > should I add a new connection state "hcIdle" for it > > Yes, a new THttpConnectionState makes sense, but do check the code > carefully to see what else is dependent upon it. On a second look the existing "hcRequest" state seems to be the state th

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-04 Thread Tobias Rapp
Arno Garrels wrote: > > As the last changes in this area have been made by Arno I have > > included him in CC of this mail. > > Huh? It looks like Angus added hcSendData to the THttpConnectionState. > I must admit that I have not yet updated my own webserver application > with V8.01. Indeed. Sorr

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-05 Thread Tobias Rapp
Angus Robertson - Magenta Systems Ltd wrote: > I added hcSendData a year ago, because initially the state was reset to > hcRequest before any data was sent, which caused a problem when blank > lines were sent after a request. > > State is not currently changed when a request ends because it's no

Re: [twsocket] Nagios like communication

2014-06-18 Thread Tobias Rapp
Florian Hector wrote: > I would like to implement a new feature into one of my applications where I > can ask for a status > through a (VPN)network connection, kind of like Nagios does. Or maybe even > build functionality into > it so that it can be queried by Nagios. > > Which methods/component