scsh-users
[Top] [All Lists]

Re: sunet(FTP) not working (Interrupted system call).

To: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Subject: Re: sunet(FTP) not working (Interrupted system call).
From: mmc@maruska.dyndns.org (Michal Maruška)
Date: 17 Mar 2002 06:32:47 +0100
Cc: scsh-news <scsh-news@zurich.ai.mit.edu>
Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de> writes:

> Michal> when running test.scm from the ecm-net package,
> 
> Michal> it blocks at     (sorry, i don't know how to get a backtrace):
> Michal> (read-line IN)    in  ftp:read-response  called by ftp:get
>  
> Michal> After a while i get:
> >> 426 Data connection: Bad file descriptor.


> Eric's code has meanwhile been integrated into the SUnet package,
> however this new version has not been released yet. Please fetch a CVS
> snapshot (as described at http://sourceforge.net/cvs/?group_id=11940)
> and tell us if the problem persists.

now i get:

** on a connected host:
log:
<- RETR robots.txt
-> 150 Opening BINARY mode data connection for robots.txt (242 bytes).
-> 426 Data connection: Interrupted system call.

stderr:
"426 Data connection: Interrupted system call.

but i really d/l the file! The timeout occurs after 20 min.


** on a host which is behind NAT/masquerade (yes, the manual warns against it,
just for curiosity):
log:
<- PORT 192,168,2,3,198,38
-> 421 Timeout (900 seconds): closing control connection.
<- RETR robots.txt
-> #{End-of-file}

stderr:
Error: invalid argument
       (#{Procedure 9200 (regexp-match in posix-regexps)} '#{Regexp} 
'#{End-of-file} #f #f)




OTOH, the server code seems to work well.









Test --- the source:

,config ,load modules.scm
,batch on
,open ftp
(define gnome-host "ftp.gnome.org"
                                        ;"maruska.dyndns.org"
                                        ;"localhost"
  )


(define conn #f)
(set! conn  (ftp:connect gnome-host "/tmp/ftp.log"))
(ftp:login conn "anonymous" "mmc@maruska.dyndns.org")
(ftp:cd conn
                                        ;"/pub/GNOME/stable/sources"
        "/")

(ftp:type conn 'ascii)
(ftp:pwd conn)
;(ftp:dir conn)

(ftp:type conn 'binary)
(ftp:get conn
         "robots.txt"
                                        ;"ftp.log"
                                        ;"welcome.msg"
                                        ;"1.jpg"
         "/tmp/ftp.get"
         )
(ftp:quit conn)

<Prev in Thread] Current Thread [Next in Thread>