From 41b4308936669aea88b6ef031f23e93c2902467d Mon Sep 17 00:00:00 2001 From: Francisco Vives Date: Tue, 22 May 2007 17:47:42 +0000 Subject: [PATCH] SMACK-128 File Transfer Fail-over Failing. The problem was when users have set a big value for a packet timeout. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8377 b35dd754-fafc-0310-a699-88a17e54d16e --- .../smackx/filetransfer/Socks5TransferNegotiator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.java b/source/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.java index 34981402d..973acbca6 100644 --- a/source/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.java +++ b/source/org/jivesoftware/smackx/filetransfer/Socks5TransferNegotiator.java @@ -329,7 +329,7 @@ public class Socks5TransferNegotiator extends StreamNegotiator { .createPacketCollector(new PacketIDFilter(query.getPacketID())); connection.sendPacket(query); - Packet packet = collector.nextResult(SmackConfiguration.getPacketReplyTimeout()); + Packet packet = collector.nextResult(10000); collector.cancel(); Bytestream response; if (packet != null && packet instanceof Bytestream) {