Re: http library
From: Michael Schlenker (schlenk_at_uni-oldenburg.de)
Date: 05/05/04
- Next message: Darren New: "Re: TIP #185: Null Handling"
- Previous message: Michael Schlenker: "Re: I explain!!! Exec ever put down my computer"
- In reply to: Googie: "Re: http library"
- Next in thread: Donal K. Fellows: "Re: http library"
- Reply: Donal K. Fellows: "Re: http library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 05 May 2004 20:03:38 +0200
Googie wrote:
> Michael Schlenker wrote:
>
>
>>(...) the only two things that can block there are name
>>resolution of the target host and the initial opening of the socket.
>>So if those run smooth the http request behaves well regarding the event
>>loop.
>>
>>Michael
>
>
> Exactly. Name resolution blocks it. This is the main problem :/ Is there any
> way to ommit it?
>
You could use the tcllib dns package to do async dns lookups. If your
setup is sane and you have a caching dns server, you could do the following:
1. use tcllib dns client to seed the upstream dns cache, if it fails the
query will probably fail too
2. use the usual http call and get the cached name from your dns server
An other approach might be to use the async dns lookup and than use
numerical ips in your query.
Michael
- Next message: Darren New: "Re: TIP #185: Null Handling"
- Previous message: Michael Schlenker: "Re: I explain!!! Exec ever put down my computer"
- In reply to: Googie: "Re: http library"
- Next in thread: Donal K. Fellows: "Re: http library"
- Reply: Donal K. Fellows: "Re: http library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|