[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-07-04 Thread Remko Popma (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14614110#comment-14614110
 ] 

Remko Popma commented on VFS-296:
-

About a week ago we started to use the timeout methods available in 2.0 (data 
timeout and so timeout). Since then we have not seen out app hanging (fingers 
crossed).
If it happens again we will try to get a jstack dump before restarting, good 
tip, thanks!

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-07-01 Thread Bernd Eckenfels (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14610894#comment-14610894
 ] 

Bernd Eckenfels commented on VFS-296:
-

As of the ASF bylaws we make nightly builds not officially available, but if 
you check out the staged (future) site of commons-vfs on 
http://people.apache.org/~ecki/commons-vfs/integration.html you can find the 
integration server. It contains a trunk build (w/o sandbox). I would recommend 
to build it yourself, it just needs maven and JDK 7.

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-07-01 Thread Bernd Eckenfels (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14610897#comment-14610897
 ] 

Bernd Eckenfels commented on VFS-296:
-

It is not a question of a blocker bug, it is a question of time for all the 
other todos.

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-07-01 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14611160#comment-14611160
 ] 

Sebb commented on VFS-296:
--

Or you can use builds from the ASF SNAPSHOT repository. Most Commons components 
are regularly built on CI servers and the jars are normally uploaded to the 
snapshot repo.

Such builds are not subject to review or QA and are used at the developer's 
risk; they should never be used in production code.
However developers are welcome to use them to help solve bugs.
Note that the snapshot builds are not stable, as they will be superseded 
whenever there is a new CI build.

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-07-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14609647#comment-14609647
 ] 

Philipp Brügger commented on VFS-296:
-

Hi Bernd, so the only blocking ticket to release 2.1 is the VFS-498 ? Please 
let us know how we can help you releasing finally a next version? We are all 
waiting for this release!!!

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-06-30 Thread Remko Popma (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14609478#comment-14609478
 ] 

Remko Popma commented on VFS-296:
-

We will try to use jstack if the problem occurs again.
Is there a snapshot or beta build somewhere that includes this fix?

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-06-30 Thread Remko Popma (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14608489#comment-14608489
 ] 

Remko Popma commented on VFS-296:
-

At my company we are using version 2.0 and have recently experienced our app 
hanging while trying to send files over FTP. This has happened 4 times in the 
previous 9 business days. We are not sure what (if anything) has changed. At 
the moment we are manually recovering any time this happens. We would love to 
upgrade to a version that includes this fix but 2.1 is not out yet. Is there a 
plan to release 2.1 in the near future?

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs

2015-06-30 Thread Bernd Eckenfels (JIRA)

[ 
https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14608808#comment-14608808
 ] 

Bernd Eckenfels commented on VFS-296:
-

Hello, if you have a stack trace of such a hang it might be good to check.

Yes there is a plan, but dont hold your breath :) 
https://wiki.apache.org/commons/VfsReleaseState

 [FTP] Socket timeout setting doesn't work if connect hangs
 --

 Key: VFS-296
 URL: https://issues.apache.org/jira/browse/VFS-296
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Andreas Persson
 Fix For: 2.1

 Attachments: sotimeout.patch, sotimeout_v2.patch


 The fix from VFS-216 doesn't help if the ftp server doesn't reply with any 
 messages at all (could happen if it's behind a badly configured firewall for 
 example). What happens is that the client.connect() called from 
 FtpClientFactory hangs, and this line is before timeout parameter is set.
 I suggest the change in the attached patch.
 The scenario can be tested with netcat -l instead of a real ftp server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)