Re: paging all socket geniuses
- From: alien_guy <l@xxxxx>
- Date: Thu, 31 Jul 2008 00:37:13 +0200 (CEST)
On Tue, 29 Jul 2008 21:31:11 -0400, Kenny wrote:
But on another XP of mine the call to make-socket goes away for almost a
minute and then returns:
(SOCKET:MAKE-SOCKET :REMOTE-HOST "s3.amazonaws.com"
:REMOTE-PORT 80
:TYPE :STREAM
:ADDRESS-FAMILY :INTERNET)
1[4]: returned
#<MULTIVALENT stream socket connected from smokinjoe/1044 to
s3.amazonaws.com/80 @ #x21affe9a>
socket:make-socket resolves :remote-host using socket:lookup-hostname.
Try evaluating (socket:lookup-hostname "s3.amazonaws.com") to see if this
is the cause of the timeout.
If it is, you can fiddle with socket:*dns-mode*, which on 8.1 defaults to
'(:ACLDNS :CLIB) which means that it first tries to query using its CL-
only resolver, using the system C resolver as backup. It may be that
Allegro's resolver has a bug so you could try to set *dns-mode* to
'(:clib :acldns) and retry. If both resolvers time out, it may be that
something on your computer(perhaps your firewall) or upstream is blocking
UDP queries - the DNS protocol says that a resolver should first try UDP,
than TCP when querying a server.
.
- References:
- paging all socket geniuses
- From: Kenny
- paging all socket geniuses
- Prev by Date: Re: Commercial Users of Functional Programming Workshop Call for Participation
- Next by Date: Re: Collecting like-labelled sublists of a list
- Previous by thread: Re: paging all socket geniuses
- Next by thread: Re: paging all socket geniuses
- Index(es):
Relevant Pages
|