Re: socket 10s hangs
- From: Joel VanderWerf <vjoel@xxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 03:33:04 +0900
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
.
- Follow-Ups:
- Re: socket 10s hangs
- From: Roger Pack
- Re: socket 10s hangs
- From: MenTaLguY
- Re: socket 10s hangs
- References:
- Re: socket 10s hangs
- From: Roger Pack
- Re: socket 10s hangs
- Prev by Date: Re: Thread safety techniques for server applications?
- Next by Date: Re: Ruby Pocket Reference
- Previous by thread: Re: socket 10s hangs
- Next by thread: Re: socket 10s hangs
- Index(es):
Relevant Pages
|