[fpc-devel] fcl-web: A proper way to set SO_REUSEADDR socket option in THTTPApplication

Michael Van Canneyt michael at freepascal.org
Fri Oct 14 17:32:25 CEST 2011



On Fri, 14 Oct 2011, Andrew Brunner wrote:

> I think you should also look into setting linger options at a lower
> rate than present values.  120 seconds is too long.  15-30 seconds is
> a reasonable amount of time to give a dead socket.
>
> In fpc componetent design, I would recommend to also make sure that
> sockets issue SHUT_DOWN for Both read and write before issuing close.

Not without a linger option implemented, otherwise this has very bad 
side-effects on windows.

Michael.



More information about the fpc-devel mailing list