Re: paging all socket geniuses



Kenny <kentilton@xxxxxxxxx> wrote:
+---------------
| D Herring wrote:
| > The address resolution may be borked. In a command shell, type `ping
| > s3.amazonaws.com`
|
| Ok. It says it will talk to s3-1.amazonaws.com and mentions an IP
| address. Then times out. The bad news is that it does this on the
| machine that /can/ get to S3 as well (and I quickly dove in via the app
| to confirm S3 is still up -- they have had issues lately. <g>)
+---------------

On most versions of Windows I've played with [I don't own any, so I don't
know how universal this is], the "ping" behaves as if you had given it
a "-o" option ["Exit successfully after receiving one reply packet"].
And maybe a "-c5" ["Stop after sending (and receiving) 5 packets"],
or some other small number. Which means that it'll only send a "few"
ICMP ECHO_REQUESTs (then stop sending), and either exit immediately on
the first ICMP ECHO_RESPONSE or else hang for some default timeout and
then exit.

+---------------
| So this is still interesting. HTH do the successful systems get
| past the timeout, and why cannot SMOKINJOE do the same?...
+---------------

Try writing a much smaller test case, say, opening a socket to
some simpler service such as <http://google.com/>, throw a "HEAD"
request at it (see below), and then read the response (which for
that request will just be a redirect, ~300 bytes total, ~520 if
you use "GET" instead of "HEAD"), e.g.:

$ http-get -H http://google.com/
HEAD / HTTP/1.0 \ Written to socket and
Host: google.com >-- also echo'd to terminal.
/
HTTP/1.0 301 Moved Permanently \
Location: http://www.google.com/ \
Content-Type: text/html; charset=UTF-8 \
Date: Wed, 30 Jul 2008 11:07:11 GMT \ Read from socket and
Expires: Fri, 29 Aug 2008 11:07:11 GMT >---
Cache-Control: public, max-age=2592000 / printed on terminal.
Server: gws /
Content-Length: 219 /
Connection: Close /

$

Then try that from each of your three machines. Hopefully it will
work on the first two and hang on the third [meaning the bug *isn't*
a Heisenbug!], and the problem will be simpler to debug.


-Rob

-----
Rob Warnock <rpw3@xxxxxxxx>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607

.



Relevant Pages

  • VIA SATA Raid needs a long time to recover from suspend
    ... Then if there was an IO request made immediately after resuming, ... Changing the timeout resolved this. ... finally did clear) it would timeout and fail. ... It seemed the kernel ...
    (Linux-Kernel)
  • Re: Strange hang when requesting page quickly
    ... "When it first hangs though, if I open a new process of IE ... and request the same URL then it will load the page fine (new thread I ... This makes me think that this is a client side "hang". ... > and request the same URL then it will load the page fine. ...
    (microsoft.public.inetserver.iis)
  • Re: .NET Windows Service OnStart hangs on Process.ProcessName
    ... // This line will hang long enough to prevent ... | the service from starting for timeout reason. ... The second startup will ...
    (microsoft.public.dotnet.framework)
  • Re: Problems with the block-layer timeouts
    ... clear a idea of when the timeout period should begin. ... Each request has its own timer, and as it is added to the queue, we ... What the driver chooses to do with the ...
    (Linux-Kernel)
  • Big Uploads with IIS 6.0
    ... I've already posted this question on the IIS forum, ... I have an ASP.NET application that does big uploads on ... upload fails randomly (as if the server had given up on the request). ... timeout in the web.config file, ...
    (microsoft.public.dotnet.framework.aspnet)