-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9k fail ftp on Windows #3189
Comments
Same problem for me! |
Some notes from investigation so far:
I'm going to need to correlate the order of events on both unix and windows so I'm getting a VM up and running. |
Bleh. Spent most of the day debugging the wrong thing. Windows Firewall was actively killing the connection immediately after client sent PASV, which then cascaded out as a series of wrong errors. I now see the reported error and will continue to investigate. |
Ok, of course the actual bug took about 5 minutes to investigate. It looks like when the FTP library attempts to shut down write on the passive data connection, it's actually shutting down read. Then it proceeds to try to read the data and kablooey. I'm a bit confused why this doesn't break on OS X. |
Now all things are clear. The constants on Windows for IO shutdown were being defined incorrectly. Instead of read = 0, write = 1, readwrite = 2, it was read = 1, write = 2, readwrite = 4. As a result, closing the write stream ended up closing everything. This is likely the cause of other similar errors. It is fixed in jnr-constants 0.9.0, and JRuby 9.0.1.0 will ship with that dependency. |
And closing the loop on 1.7 passing this... not until 9k did we define these constants via jnr-constants, so the bad fake values never affected 1.7. |
I have used jruby 9.0.0.0 on Windows7.
9.0.0.0 fail ftp on Windows7, but succeed on MacOS.
jruby 1.7.20.1 succeed on Windows7.
ex)
The text was updated successfully, but these errors were encountered: