Hi Piero, In message <_A6@delegate-en.ML_> on 08/07/98(19:06:31) you "Piero Berritta" <pauaabdyi-qa4rnugp6oa6.ml@delegate.org> wrote: |Client side: |delegated -P21 FSV="sslway -co" SERVER=ftp://ftp-server-name:8021 | |Server side: |delegated -P8021 FCL="sslway -ac" SERVER=ftp://ftp-server-name:21 | |When I make ftp the connection initialise correctly, but, as soon as I try |to open a data connection (tipically a dir command) the ftp hungs up. |Is someone able to solve this problem? I could reproduce the problem in my environment. It is caused because I have incompleteley supported external filter for FTP protocol. This problem seems to be solved with the patch enclosed in this message, and also by ftp.c temporarily placed as "ftp://ftp.etl.go.jp/pub/DeleGate/tmp/ftp.c" which is more comprehensively repaired. Cheers, Yutaka -- Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/ @ @ Computer Science Division, Electrotechnical Laboratory ( - ) 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan _< >_ *** ../dist/delegate5.6.1/src/ftp.c Fri Jul 24 00:57:51 1998 --- ftp.c Fri Aug 7 20:57:30 1998 *************** *** 148,153 **** --- 148,167 ---- } } + static ServSock(Conn,ts,where) + Connection *Conn; + FILE *ts; + char *where; + { int toS; + + if( (Conn->xf_filters & XF_SERVER) && 0 <= ToSX ){ + sv1log("## viaCFI [%s]: fileno(ts)=%d ToSX=%d\n", + where,fileno(ts),ToSX); + toS = ToSX; + }else toS = fileno(ts); + return toS; + } + is_anonymous(user) char *user; { *************** *** 2523,2529 **** fflush(tc); if( !FS->fs_IAMCC ) ! if( !localsocket(fileno(ts)) && getenv("NOXDC") == 0 ) if( FS->fs_serverWithXDC ){ if( D_FTPHOPS == 1 ){ put_serv(MODE(FS),ts,"MODE XDC\r\n"); --- 2537,2543 ---- fflush(tc); if( !FS->fs_IAMCC ) ! if( !localsocket(ServSock(Conn,ts,"INIT")) && getenv("NOXDC") == 0 ) if( FS->fs_serverWithXDC ){ if( D_FTPHOPS == 1 ){ put_serv(MODE(FS),ts,"MODE XDC\r\n");