1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 17:52:06 +01:00

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
This commit is contained in:
Francisco Vives 2007-05-22 17:47:42 +00:00 committed by francisco
parent b3d4f6643b
commit 41b4308936

View file

@ -329,7 +329,7 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
.createPacketCollector(new PacketIDFilter(query.getPacketID())); .createPacketCollector(new PacketIDFilter(query.getPacketID()));
connection.sendPacket(query); connection.sendPacket(query);
Packet packet = collector.nextResult(SmackConfiguration.getPacketReplyTimeout()); Packet packet = collector.nextResult(10000);
collector.cancel(); collector.cancel();
Bytestream response; Bytestream response;
if (packet != null && packet instanceof Bytestream) { if (packet != null && packet instanceof Bytestream) {