Re: socket 10s hangs




Roger Pack wrote:
I think that did it! Thank you!
Where is the documentation for this stuff???

It is mentioned in the socket section in the Pickaxe (ed. 1 is on-line somewhere, ed. 2 is worth buying). But if you don't know what you're looking for that doesn't help...

It's just one of those gotchas that keeps coming up. A similar one is

Thread.abort_on_exception = true

(otherwise threads die silently on unhandled exceptions).

I assume that it does a reverse lookup on every socket? If that's the case I might <cough> put in a request to ruby to only do reverse DNS when it is requested (lazily)...hmm...

IIRC, the reverse lookup only happens if you call something like sock.addr or sock.peeraddr, and you've left Socket.do_not_reverse_lookup = false.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

.



Relevant Pages

  • Re: [opensuse] nfs server /require/ reverse DNS lookup working?!
    ... Don't use * as a wildcard in /etc/exports. ... documentation that this can happen. ... * requires reverse DNS. ... Some times, the Windows client ask for a username and password, because ...
    (SuSE)
  • Re: giving users their own http logs
    ... The directives used and their purpose is explained in the Apache ... documentation, so I won't go deeply into it, but just see the specific ... The SetEnvIf documentation reads: ... request", so the request method is included, as well as the querystring, ...
    (RedHat)
  • Re: DCL enhancement - REQUEST/REPLY - how to capture a value.
    ... >> serve up the response via a DCL symbol, ... >> system service documentation for details. ... > define verb REQUEST ... I don't have access to the SLS images here at ...
    (comp.os.vms)
  • Re: Resize images ASP.NET
    ... intercepts the request and does some processing to determine if the ... how you would determine if the image dimensions in pixels were above a ... Check your documentation on System.Drawing.Image for more information. ... System.Drawing to create and modify images. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [PATCH] check_/request_region fixes & request for enlightenment
    ... You pass the same address and size you used to request the region. ... chip, so, I am not quite sure if it is safe here to just blindly configure ... > I've been digging for a while looking for some documentation on this, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)