try relaxing msg13 packet drop constraint a little

to increase downloads
This commit is contained in:
Matt Wells
2015-09-04 18:33:04 -07:00
parent 90f79a31e1
commit 2a214fe2e7
2 changed files with 10 additions and 6 deletions

@ -383,16 +383,17 @@ void printUdpTable ( SafeBuf *p, char *title, UdpServer *server ,
"<td><b>hostname</b></td>";
}
UdpSlot *slot = server->m_head3;
int32_t callbackReadyCount = 0;
for ( ; slot ; slot = slot->m_next3 , callbackReadyCount++ );
//UdpSlot *slot = server->m_head3;
//int32_t callbackReadyCount = 0;
//for ( ; slot ; slot = slot->m_next3 , callbackReadyCount++ );
p->safePrintf ( "<table %s>"
"<tr class=hdrow><td colspan=19>"
"<center>"
//"<font size=+1>"
"<b>%s</b> (%"INT32" transactions)"
"(%"INT32" requests waiting to processed)"
//"(%"INT32" requests waiting to processed)"
"(%"INT32" incoming)"
//"</font>"
"</td></tr>"
"<tr bgcolor=#%s>"
@ -419,7 +420,8 @@ void printUdpTable ( SafeBuf *p, char *title, UdpServer *server ,
"</tr>\n" ,
TABLE_STYLE,
title , server->getNumUsedSlots() ,
callbackReadyCount ,
//callbackReadyCount ,
server->getNumUsedSlotsIncoming() ,
DARK_BLUE ,
dd );

@ -1533,7 +1533,9 @@ int32_t UdpServer::readSock_ass ( UdpSlot **slotPtr , int64_t now ) {
// . msg13 is clogging thiings up when we synchost a host
// and it comes back up
// . allow spider compression proxy to have a bunch
if ( msgType == 0x13 && m_numUsedSlots > 500 && ! isProxy )
// . MDW: do we need this one anymore? relax it a little.
if ( msgType == 0x13 && m_numUsedSlotsIncoming>400 &&
m_numUsedSlots>800 && !isProxy)
getSlot = false;
// 2c is clogging crap up
if ( msgType == 0x2c && m_msg2csInWaiting >= 100 && niceness )