Read time out error

Moderator: developers

Read time out error

Postby Flurry » Sun Jun 05, 2011, 6:59 am

Hello,

I´ve got this irretating problem with read timeout for users when they uploading to my slaves.
I´ve changed in DataConnectionHandler.java following to get more time:

s2.startHandshake(); is replaced by:

int oldTimeout = s2.getSoTimeout();
s2.setSoTimeout(15000);
s2.startHandshake();
s2.setSoTimeout(oldTimeout);

Still got the problem, i post a log from drftpd.log here and hope that someone can help me solve the problem.

net.sf.drftpd.master.command.plugins.DataConnectionHandler -
org.drftpd.slave.TransferFailedException: Read timed out
at org.drftpd.master.RemoteTransfer.getTransferStatus(RemoteTransfer.java:90)
at net.sf.drftpd.master.command.plugins.DataConnectionHandler.transfer(DataConnectionHandler.java:1682)
at net.sf.drftpd.master.command.plugins.DataConnectionHandler.execute(DataConnectionHandler.java:932)
at net.sf.drftpd.master.command.CommandManager.execute(CommandManager.java:114)
at net.sf.drftpd.master.BaseFtpConnection.service(BaseFtpConnection.java:490)
at net.sf.drftpd.master.BaseFtpConnection.run(BaseFtpConnection.java:433)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:146)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:312)
at sun.security.ssl.InputRecord.read(InputRecord.java:350)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1169)
at org.drftpd.ActiveConnection.connect(ActiveConnection.java:66)
at org.drftpd.slave.Transfer.accept(Transfer.java:548)
at org.drftpd.slave.Transfer.receiveFile(Transfer.java:290)
at org.drftpd.slave.Slave.handleReceive(Slave.java:765)
at org.drftpd.slave.Slave.handleCommand(Slave.java:567)
at org.drftpd.slave.Slave.access$200(Slave.java:98)
at org.drftpd.slave.Slave$1AsyncCommandHandler.run(Slave.java:965)
... 1 more
DEBUG 05 jun 2011 08:17:51 [FtpConn thread 9475 from xx.xx.xx.xx NAME/GROUP] org.drftpd.remotefile.LinkedRemoteFile - delete(/FOLDER/RELEASE-GRUOP/file.rar)
DEBUG 05 jun 2011 08:17:51 [RemoteSlave - Slave5] org.drftpd.master.RemoteSlave - Received: org.drftpd.slave.async.AsyncResponseDiskStatus[status=org.drftpd.slave.DiskStatus[free=x.xTB,total=x.xTB]]
DEBUG 05 jun 2011 08:17:51 [RemoteSlave - Slave5] org.drftpd.master.RemoteSlave - Received: org.drftpd.slave.async.AsyncResponse[index=ff]
ERROR 05 jun 2011 08:17:51 [FtpConn thread 9475 from xx.xx.xx.xx NAME/GROUP] net.sf.drftpd.master.command.plugins.DataConnectionHandler - IOException during transfer, deleting file
org.drftpd.slave.TransferFailedException: Read timed out
at org.drftpd.master.RemoteTransfer.getTransferStatus(RemoteTransfer.java:90)
at net.sf.drftpd.master.command.plugins.DataConnectionHandler.transfer(DataConnectionHandler.java:1682)
at net.sf.drftpd.master.command.plugins.DataConnectionHandler.execute(DataConnectionHandler.java:932)
at net.sf.drftpd.master.command.CommandManager.execute(CommandManager.java:114)
at net.sf.drftpd.master.BaseFtpConnection.service(BaseFtpConnection.java:490)
at net.sf.drftpd.master.BaseFtpConnection.run(BaseFtpConnection.java:433)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:146)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:312)
at sun.security.ssl.InputRecord.read(InputRecord.java:350)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1169)
at org.drftpd.ActiveConnection.connect(ActiveConnection.java:66)
at org.drftpd.slave.Transfer.accept(Transfer.java:548)
at org.drftpd.slave.Transfer.receiveFile(Transfer.java:290)
at org.drftpd.slave.Slave.handleReceive(Slave.java:765)
at org.drftpd.slave.Slave.handleCommand(Slave.java:567)
at org.drftpd.slave.Slave.access$200(Slave.java:98)
at org.drftpd.slave.Slave$1AsyncCommandHandler.run(Slave.java:965)
... 1 more

Please tell me if you need more information.
Kindly regards!
Flurry
 
Posts: 2
Joined: Sun Jun 05, 2011, 6:51 am

Re: Read time out error

Postby Flurry » Sun Jun 12, 2011, 6:47 pm

Please help in this :cry:
Flurry
 
Posts: 2
Joined: Sun Jun 05, 2011, 6:51 am


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron