From: Rich Date: 2002-07-08T02:44:47+09:00 Subject: Net::FTP hangs when connecting to a windows server... Simple FTP connection. Linux servers work just fine. Windows seems to block/hang. I don't have the server logs yet - maybe on Monday. I ran the interpreter with --debug, and FTP with debug_mode=true. Here's all relevant output:: Start output Exception `NameError' at server.rbw:39 - undefined method `to_ary' for "connect| www.mydomain.com|administrator|******\000":String connect|www.mydomain.com|administrator|****** Exception `NameError' at server.rbw:41 - undefined method `to_ary' for "connect" :String connect Exception `NameError' at server.rbw:41 - undefined method `to_ary' for "www.mydomain.com":String www.mydomain.com Exception `NameError' at server.rbw:41 - undefined method `to_ary' for "administ rator":String administrator Exception `NameError' at server.rbw:41 - undefined method `to_ary' for "***** *\000":String put: USER administrator get: 331 Password required for administrator. put: PASS ********** End output .. 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! -Rich