in reply to use IO::Socket / Windows Timeout

Do you have a url for a particularly slow website?

I think I have a good solution for you, but it's difficult to test as these days DNS servers tend to respond to unknown addresses with a page of f'ing adverts.

My usual "slow" test is Perlmonks, but it's running surprisingly quickly today.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^2: use IO::Socket / Windows Timeout
by bonzi (Acolyte) on Apr 29, 2024 at 09:51 UTC

    My problem is not with Web sites, but with laboratory instruments that "report" either via built-in HTTP server or via direct TCP connection. Both tend to occasionally "freeze", after the connection has been successfully established. Strangely enough, timeout at socket creation seems to work.

    I would appreciate if you would share the "good solution" you mentioned. It has been almost 15 years, but I suspect it will still be good :-D

    Thanks!

      The user in question sadly has not been active here for years. A better approach would be to start a thread for your actual problem, rather than something which doesn't fit in with the existing thread. How do I post a question effectively?.

Re^2: use IO::Socket / Windows Timeout
by DanielSpaniel (Scribe) on Aug 07, 2010 at 01:17 UTC

    Thanks for both the comments ... Haven't yet had a chance to look at the first response properly though, but looks interesting, and will post back how that works out.

    Meantime, yes, a particularly slow response can be got from the following domain: http://www.lxdirect.com

    It used to be an active retail site, but they've now re-branded, etc. However, you'll wait up to 30 seconds or so for a response, at which point it fails (try it in a browser first if you like). It was only by chance that I realized that it was causing such a delay, but then figured I would need to handle such instances anyway ...

    Thanks again, and any help appreciated.