[Lazarus] THTTPApplication does not close the TCP Connection

Michael Van Canneyt michael at freepascal.org
Wed Jul 17 14:05:22 CEST 2013



On Wed, 17 Jul 2013, Jansen, Dirk wrote:

> Hello,
>
> I tested a simple http application and found that the THTTPApplication
> does not close the connection.
>
> A normal web server always close the connection after sending the HTML
> page but this webserver does not close the connection. As a result of
> this every second request from a web browser (Firefox, IE) does not
> work. The browser starts the request than it waits for a very long time.
> If you interrupt the browser and start a new request you get an answer.

That is not correct.

In HTTP 1.1 The browser sends a HTTP header which determines if the connection should be closed or not.

Secondly, THTTPApplication is an apache module. There it is apache which determines 
what happens to the connection, not the FPC code.

Michael.




More information about the Lazarus mailing list