Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: TIdTCPServer - threads, global data contd.
| Subject: | Re: TIdTCPServer - threads, global data contd. |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 17 Apr 2006 14:48:23 |
"Stephen Odgaard" <sso@cowi.dk> wrote in message
news:4443f201@newsgroups.borland.com...
> I can see there is a "IdTimeOutDefault = -1" defining that the
> "Default Timeout" should be used for ReadLn, but not what
> it is. Where can I see this?
The default timeout is controlled by the connection's ReadTimeout property.
> For WriteLn there seem not to be any timeout defined.
There are no timeouts implemented for writing. Not in Indy. Not in the
socket API itself. When you send data over a socket, it is not actually
sent over the network immediately. The socket buffers all outgoing data and
then sends it over the network at its own leisure (unless you disable the
buffering, which is a whole topic of its own that does not apply to this
discussion right now).
Gambit
none