From: Rich Date: 2002-07-08T06:11:10+09:00 Subject: Re: Net::FTP hangs when connecting to a windows server... I guess I'm not sure - how can I find out? If it just a setting in the FTP server? Normal FTP clients (leechFTP, cuteFTP) connect just fine... -Rich ----- Original Message ----- From: "Sean Chittenden" To: "ruby-talk ML" ; "Rich" Cc: "ruby-talk ML" Sent: Sunday, July 07, 2002 2:45 PM Subject: Re: Net::FTP hangs when connecting to a windows server... > > .. and then it hangs... > > > > Start code > > 26 mainSocket = TCPserver.open('localhost', '4444') > > 27 addr = mainSocket.addr > > 28 addr.shift > > 29 print "server is on...\nIP:\t#{addr[2]}\nPort:\t#{addr[0]}\nComputer > > Name:\t#{addr[1]}\n" > > 30 > > 31 while(true) > > 32 $s = mainSocket.accept > > 33 peerName=$s.peeraddr > > 34 print(peerName, " is accepted\n") > > 35 > > 36 while(true) > > 37 # Set the EOL character as a parameter of the 'gets' method... so > > that we don't affect things globally > > 38 while $s.gets("\0") > > 39 puts $_ > > 40 holder=$_.split("|") > > 41 holder.each { | item | puts item } > > 42 > > 43 case holder[0] > > 44 > > 45 when "abort" > > End code > > > > So... it doesn't even seem to be a problem with Net::FTP - but the NameError > > is raised when I use a variable that hasn't been assigned a value - right? > > > > Thanks for any help I can get! > > Are you running into a passive vs. active FTP problem? -sc > > -- > Sean Chittenden >