Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by MR
Sun, 03 Dec 2006 09:48
TIdHTTP's timeout-settings seem not to work as intended
Author: MR
Date: Sun, 03 Dec 2006 09:48
Date: Sun, 03 Dec 2006 09:48
16 lines
1458 bytes
1458 bytes
TIdHTTP's timeout-settings seem not to work correctly!? I'm setting a TIdHTTP's ConnectTimeout and ReadTimeout properties to a value about 200ms. When I am trying to Get() an address, which is not available it takes much longer (about 15s) until Get() finishes. I have to add that I am connected to a LAN-router and plugged out the connection between it and the internet itself: if I cut the line between the computer and the router Get() seems to work as intended: after a quite short time it finishes with the expected error. So perhaps I have to set another timeout-property? Thanks, Michael
Re: TIdHTTP's timeout-settings seem not to work as intended
Author: Remy Lebeau (TeamB)
Date: Mon, 04 Dec 2006 19:41
Date: Mon, 04 Dec 2006 19:41
16 lines
1444 bytes
1444 bytes
<MR> wrote in message news:ka65n2lunuqph368222hfcmnksqlglejie@4ax.com... > I'm setting a TIdHTTP's ConnectTimeout and ReadTimeout properties > to a value about 200ms. 200ms is fine for a ReadTimeout, but that is generally too small for a ConnectTimeout, especially if a DNS query has to be performed. There are no DNS timeouts available, and network latency can cause slow connections. > So perhaps I have to set another timeout-property? There aren't any other timeouts. Gambit
Re: TIdHTTP's timeout-settings seem not to work as intended
Author: MR
Date: Tue, 05 Dec 2006 03:05
Date: Tue, 05 Dec 2006 03:05
19 lines
1562 bytes
1562 bytes
>> I'm setting a TIdHTTP's ConnectTimeout and ReadTimeout properties >> to a value about 200ms. > >200ms is fine for a ReadTimeout, but that is generally too small for a >ConnectTimeout, especially if a DNS query has to be performed. There are no >DNS timeouts available, and network latency can cause slow connections. Thank you. Because I suppose this connection-loose will not occur to often it's not so problematic, if the application is blocked for about 1/4 minute in this case. In the other cases I tried (e.g. giving an html-.address which does not exist it times-out like intended... Thanks, Michael
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads