Article View: borland.public.cppbuilder.internet.socket
Article #1126Re: TIdHTTPServer: question about KeepAlive
From: Remy Lebeau (TeamB)
Date: Tue, 22 May 2007 19:55
Date: Tue, 22 May 2007 19:55
40 lines
2365 bytes
2365 bytes
<emerson.pardo@gmail.com> wrote in message news:1179780948.075616.164470@x35g2000prf.googlegroups.com... > If I set TIdHTTPServer KeepAlive property to true the server > will try to keep all conections keep-alived? Only for those connections where the client actually asked for the connection to stay alive after the response has been sent. Otherwise no. > What does happen if one client send some requests with > keep-alive enabled and others requests with keep-alive disabled? Each request is handled independantly. If a keep-alive is not used on one request, then that connection will be disconnected after the response is sent. The client would then have to reconnect to send the next request. > My server is a stock quotes server and my client needs to start listen > some stock quotes so it sends one request (with keep-alive disabled) > for each stock it wants to listen. Then the client is going to have to reconnect on each new request. > When my client begins it opens one connection with keep-alive enabled > and when the stocks updates his data the new values will be sent through > this connection. Now what is happening is that the server doesn't keep > this connection opened and I'm not understanding what is happening. Then the client is likely not requesting a keep-alive in its request to begin with, so the server's KeepAlive option is ignored for that connection. Gambit
Technical Details
Message-ID:
<46534b0b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<1179780948.075616.164470@x35g2000prf.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c40d4766d883446f X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <1179780948.075616.164470@x35g2000prf.googlegroups.com> Subject: Re: TIdHTTPServer: question about KeepAlive Date: Tue, 22 May 2007 12:55:39 -0700 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.60.244 Message-ID: <46534b0b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1179863819 75.82.60.244 (22 May 2007 12:56:59 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail