Bug 1252755: increase maximum UDP packet size to 9216 bytes for jumbo frames. r=jesup
MozReview-Commit-ID: 9aNARxTIdyr
--- a/netwerk/base/nsUDPSocket.cpp
+++ b/netwerk/base/nsUDPSocket.cpp
@@ -455,19 +455,19 @@ nsUDPSocket::OnSocketReady(PRFileDesc *f
{
NS_WARNING("error polling on listening socket");
mCondition = NS_ERROR_UNEXPECTED;
return;
}
PRNetAddr prClientAddr;
uint32_t count;
- // Bug 1165423 - using 8k here because the packet could be larger
- // than the MTU with fragmentation
- char buff[8 * 1024];
+ // Bug 1252755 - use 9216 bytes to allign with nICEr and transportlayer to
+ // support the maximum size of jumbo frames
+ char buff[9216];
count = PR_RecvFrom(mFD, buff, sizeof(buff), 0, &prClientAddr, PR_INTERVAL_NO_WAIT);
if (count < 1) {
NS_WARNING("error of recvfrom on UDP socket");
mCondition = NS_ERROR_UNEXPECTED;
return;
}
mByteReadCount += count;