Hello everyone.

Note:
This is a re-post of a message sent to the Talk list, with more detail
on the problem. This message gets sent the second time to this list too. 
  I sent the first one before receiving elist's subscription 
confirmation so I don't think it went through.

I'm having some trouble using the THttpCli component from the ICS suite. 
I'm using this component to simply download a document off a web site 
(the "document" might be a configuration file or a compressed DLL file 
or whatever). It mostly works but some times it just stops (gets stuck 
in a state - the last OnChangeState message I'm getting is 
httpDnsLookupDone) and then nothing happens. My application's GUI 
doesn't get stuck because Application's message pump is working, but the 
download doesn't finish ether. Or, if something does happen, I know 
nothing about it... Please note I'm using "GetAsync" to get my document.

Extra information:

I'm using the version of ICS marked "[ Download the latest ICS-V5
Distribution ]" on http://www.overbyte.be/frame_index.html. Is V6 for
"general consumption"? Should I try that?
The web server I'm accessing is likely not the cause for this problem as
the server is an Apache server running on a Windows machine on my LAN.

I did implement a kind of time-out mechanism into my download thing: if
no event is triggered for a given amount (no state change, no data
received, no error) I consider the connection to be "timed out". This
gets my application back on the track working properly but this feels
like a hack, it doesn't seem to be the right thing to do. Please correct
me if I'm wrong!

Thanks,
Cosmin Prund

-- 
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