Hello Bjørnar,

> instead of using a timer. You might use OnDataSent and check the property
> AllSent before closing down. Then you can post a custom message to close
> down the server instead of using a timer, a slow line could use more than
> 500 ms.

It is typical used on LAN or fast lines. However you are right. I think
OnClientDisconnect is the right place, because the browser disconnects
when document is received.

And yes creating a new server is maybe better. I can set the server stop
listening while it will still process the data to the client, and
immediatly create a new one to be sure;

In fact then I could use HTTP redirect as Francois proposed.

Rgds, Wilfried

To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to