Re: paging all socket geniuses



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.
.



Relevant Pages

  • Re: Ruby/Gnome app hangs when httping from inside a thread (linux only)
    ... EXCEPT when there's no network connection. ... the timeout property is set. ... Which seems to provide a pure-ruby resolver which should play nice ... whereas maybe windows does - so on linux it tries ...
    (comp.lang.ruby)
  • Re: Help configuring VMS mail with Dynaccess.com
    ... Timeout: Not defined ... Servers: No values defined ... BIND Resolver Configuration ... But the nslookup is good to test your resolver. ...
    (comp.os.vms)
  • Re: timeout for "socket"?
    ... If I want any timeout at all, ... "standard resolver library blocks while looking up names. ... convert a name to an address, but the system may also use files, NIS, LDAP ... One solution is to force the use of DNS " ...
    (comp.lang.tcl)