When time is up it is up. Especially considering the loop in doPartialFill....
@@ -391,7 +391,7 @@ public class FastSearcher extends VespaBackEndSearcher {
BasicPacket[] basicPackets;
try {
- basicPackets = channel.receivePackets(Math.max(50, query.getTimeLeft()), 1);
+ basicPackets = channel.receivePackets(query.getTimeLeft(), 1);
} catch (ChannelTimeoutException e) {
return new Result(query,ErrorMessage.createTimeout("Timeout while waiting for " + getName()));
} catch (InvalidChannelException e) {
@@ -472,7 +472,7 @@ public class FastSearcher extends VespaBackEndSearcher {
if (isLoggingFine())
getLogger().finest("Sent " + docsumsPacket + " on " + channel);
if ( ! couldSend) throw new IOException("Could not successfully send GetDocSumsPacket.");
- receivedPackets = channel.receivePackets(Math.max(50, result.getQuery().getTimeLeft()), docsumsPacket.getNumDocsums() + 1);
+ receivedPackets = channel.receivePackets(result.getQuery().getTimeLeft(), docsumsPacket.getNumDocsums() + 1);
if (isLoggingFine())
getLogger().finest("got " + receivedPackets.length + "docsumPackets");
