commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <>
Subject [jira] [Commented] (NET-606) Thread hangs when invoke connect method
Date Thu, 05 Jan 2017 09:10:58 GMT


Bernd Eckenfels commented on NET-606:

If you know what the issue is, you can add a patch to this bug or sent it to the dev@commons
Mailing list, we can then make sure it gets applied. You can also use Github for a Pull Request
if you prefer:

If you do not know the resoltion it will most likely help to describe the issue a bit better.
For example providing a Server side error or a Network sniffinf trace. Can you also say if
this Code hangs forever or only a for a Long time? The Code you showed does not correlate
with the stacktrace shown, so maybe you can help with providing a full example. In your sample
Code the setSoTimeout() Comes after the ftps.connect(), this might also be a Problem. Anyway,
the hanging SSL handshake is a sign for a Synchronisation Problem between Client and Server
(and a possible timeout should resolve it).

> Thread hangs when invoke connect method
> ---------------------------------------
>                 Key: NET-606
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 2.2
>            Reporter: zhengweixiong
>            Priority: Blocker
>              Labels: features
>   Original Estimate: 96h
>  Remaining Estimate: 96h
> ftp hangs when trying connect. stack as follows. 
> "UpdateBrowSerParam" #633 prio=5 os_prio=0 tid=0x00007f60610cc000 nid=0x2165 runnable
>    java.lang.Thread.State: RUNNABLE
> 	at Method)
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	- locked <0x00000006d44fdd70> (a java.lang.Object)
> 	at
> 	- locked <0x00000006d44fdda0> (a java.lang.Object)
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at com.swimap.prs.utils.ftp.FTPSTransfer.initFTPSClient(
> 	at com.swimap.prs.utils.ftp.FTPSTransfer.initFtpsClient(
> 	at com.swimap.prs.utils.ftp.FTPSTransfer.upload(
> 	at com.swimap.prs.application.paimgr.session.impl.TransferFileService.uploadFile(
> this issue happen something when the other times is ok.
> code as follows:
>         ftps = new FTPSClient("TLSv1.2", true);
>         ftps.setConnectTimeout(10000);
>         ftps.setDataTimeout(20000);
>         ftps.setControlEncoding("UTF-8");
>         ftps.connect(ftpServerInfo.getIp());
>         ftps.setSoTimeout(20000);

This message was sent by Atlassian JIRA

View raw message