strange behaviour with connect/2 (0926)

From: Kish Shen <ks15_at_icparc.ic.ac.uk>
Date: Fri 20 Apr 2001 03:07:57 PM GMT
Message-Id: <E14qcVp-0005TO-00@holborn.icparc.ic.ac.uk>
With a socket established by:

[eclipse 1]: socket(internet,stream,socket).


then if the following connect/2 is executed, the system waits for a long
time before returning with a system interface error (on Linux and Sparc):

[eclipse 3]: connect(socket,1/1000).
system interface error: Connection timed out in connect(socket, 1 / 1000)

This should probably fail immediately, as 1 is not an atom.

However, on i386_linux and alpha_linux, if the following connect was tried
first (before the one with 1/1000):

[eclipse 2]: get_flag(hostname,SHost),connect(socket,SHost/1000).
system interface error: Connection refused in connect(socket, "holborn.icparc.ic.ac.uk" / 1000)
[eclipse 3]: connect(socket,1/1000).
system interface error: Invalid argument in connect(socket, 1 / 1000)

then the connect(socket,1/1000) immediately, with a different
error. However, it still time-out on Sparc. In addition, if the order of
the two connect/2 were reversed (on Linux):

[eclipse 1]: socket(internet,stream,socket).

yes.
[eclipse 2]: connect(socket,1/1000).


interruption: type a, b, c, e, or h for help : ? abort
Aborting execution ...
[eclipse 3]:  get_flag(hostname,SHost),connect(socket,SHost/1000).
system interface error: Connection timed out in connect(socket, "holborn.icparc.ic.ac.uk" / 1000)
Received on Fri Apr 20 16:07:58 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:05 PM GMT GMT