net/ftp possible bug
--------------------

                 Key: JRUBY-1140
                 URL: http://jira.codehaus.org/browse/JRUBY-1140
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC3, JRuby 1.0.0
         Environment: JRuby 1.0.0, JDK 1.6.0_01
            Reporter: Paolo


The following code:
require 'NET/ftp'
ftp_conn = Net::FTP.new("mysite", "user", "passwd")
ftp_conn.chdir("/mydir")
puts "chdir done"
a= ftp_conn.list("*.txt")
puts "list done"
ftp_conn.close

Works well with ruby, while it produces the following output with JRuby 1.0.0:
chdir done
D:/jruby-1.0/lib/ruby/1.8/NET/ftp.rb:630:in `loop': No message available (IOErro
r)
        from D:/jruby-1.0/lib/ruby/1.8/NET/ftp.rb:431:in `retrlines'
        from D:/jruby-1.0/lib/ruby/1.8/NET/ftp.rb:630:in `mon_synchronize'
        from D:/jruby-1.0/lib/ruby/1.8/NET/ftp.rb:434:in `retrlines'
        from D:/jruby-1.0/lib/ruby/1.8/NET/ftp.rb:630:in `list'
        from test.rb:5


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to