Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : proposal to change Indy code for Post method...
| Subject: | proposal to change Indy code for Post method... |
| Posted by: | "Vlad Gonchar" (vgonch..@performancesoft.com) |
| Date: | Fri, 8 Jul 2005 11:57:04 |
Indy10, IdHttp.pas
I'd like to use Post method and KeepAlive option (in order to not run out of
sockets in fast loop).
When I specify hoKeepOrigProtocol option in my code, Indy still closes
connection because of it falls back to http1.
Original code responsible for closing connection on each post looks like
this one:
procedure TIdCustomHTTP.Post(AURL: string; ASource, AResponseContent:
TStream);
...
begin
...
if Connected then
begin
Disconnect;
end;
...
Would not be it more correct to make the following slight change to the
code:
procedure TIdCustomHTTP.Post(AURL: string; ASource, AResponseContent:
TStream);
...
begin
...
if Connected and not (hoKeepOrigProtocol in FOptions) then
begin
Disconnect;
end;
...