Re: Strange error in multiprocess communication

Gautham Anil <[email protected]> Tue, 11 Apr 2006 14:45:37 +0530
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
Hi,

Your errno-fu is pretty good. This is what it gave me.

1> ,condition
'(exception 116 os-error 104 #{Byte-vector (length 4096) 40 115 101 110 
100 45 109 101 115 115 97 103 101 32 99 104 ...} 0 4096 #t 
#{Input-channel "socket connection"} "Connection reset by peer")
1>

Still, how to solve it? Please help.

Taylor R. Campbell wrote:
>    Date: Sun, 09 Apr 2006 13:37:33 +0530
>    From: Gautham Anil <[email protected]>
>    Newsgroups: gmane.lisp.scheme.scsh
> 
>    Error: exception
>            os-error
>            (channel-maybe-read 104 '#{Byte-vector (length 4096) 40 115 101 
>    110 100 ---} 0 4096 #t ---)
> 
> Judging by this error message, if my errno-fu is correct, this means
> that the connection was reset by peer.  You could probably find out
> for certain if you typed ,CONDITION at the debugger and looked at the
> last element of the list it prints; CHANNEL-MAYBE-READ puts the OS's
> error message (in the sense of strerror(3)) at the end of the
> condition it signals.
> 
> But I notice that you seem to be using the sockets interface from
> Scheme48, which scsh happens to come with, and which is very minimal
> and not very useful.  Why aren't you using scsh's much more extensive
> sockets interface?  As it happens, the OS error message will be put at
> the very front of conditions signalled by the socket syscalls if you
> use scsh's sockets interface.

-- 
Gautham Anil                              [email protected]
M.Tech Student                http://www.cse.iitb.ac.in/~gautham_anil

  __ Mailing address ____________________
   Room No. 214, A-Wing, Hostel 12,
   Indian Institute of Technology Bombay,
   Mumbai - 400 076