ACL sockets

From: Vladimir Zolotykh (gsmith_at_eurocom.od.ua)
Date: 07/24/04


Date: Sat, 24 Jul 2004 19:03:04 +0300

Hi,

Could you help me please? Two questions about ACL sockets (ACL 6.2)

After a number of successful attempts I've found myself in a situation
when I can't create a socket anymore. Something went wrong and I don't
know what.

   sock3(236): (socket:make-socket :connect :passive :local-port 9999
:reuse-address t)
   Error: "Local socket address already in use" (errno 98) occured while
creating a passive socket.
     [condition type: socket-error]

   # netstat -nap | grep 9999
   tcp 0 0 0.0.0.0:9999 0.0.0.0:*
LISTEN 850/mlisp
   tcp 16 0 127.0.0.1:9999 127.0.0.1:38465
CLOSE_WAIT -
   #

I had only one mlisp process at the time. So it is definitely he (it) who
"hold" the socket.

Is it still possible to bring mlisp "to his senses" concerning this
socket (port 9999) or the only way is to kill it? Why such a situation
might have happened?

Another question if you don't mind.

I have two examples of the server listening on a socket and responding to
the coming from it requests. On written in C another in CL (ACL). The only
significant difference in their basic functionality is that I had to put

   (force-output sock)

in ACL version after sending response to the client. Without this
client never saw the answer. Can I tune ACL socket to behave like a C
one? (something with socket-control or maybe set-socket-options)?

Thanks in advance

-- 
Vladimir Zolotykh 


Relevant Pages

  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #2]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • Re: How do I tell an object to free up an owned object from thta object itself?
    ... I tested running a sequence of connect/disconnect from the client ... client address for those connections that were active. ... In the ClientConnect event I create a handler object for processing ... >Socket is in fact a TServerClientWinSocket which acts as a end-connection ...
    (comp.lang.pascal.delphi.misc)
  • Re: question about class Socket
    ... run the following code, the client send a test string, but it doesn't ... // State object for receiving data from remote device. ... // Client socket. ...
    (microsoft.public.dotnet.framework)