Bug 1165423 - WebRTC Fix DTLS handshake by expanding UDP buffer. r=rjesup

--HG--
extra : rebase_source : ad42c8dcf8282c13383af54ac26bb2b0ce740c62
This commit is contained in:
Ethan Hugg 2015-05-15 16:58:56 -07:00
parent b724b82073
commit 8e5e509026

View File

@ -660,7 +660,9 @@ nsUDPSocket::OnSocketReady(PRFileDesc *fd, int16_t outFlags)
PRNetAddr prClientAddr;
uint32_t count;
char buff[1500];
// Bug 1165423 - using 8k here because the packet could be larger
// than the MTU with fragmentation
char buff[8 * 1024];
count = PR_RecvFrom(mFD, buff, sizeof(buff), 0, &prClientAddr, PR_INTERVAL_NO_WAIT);
if (count < 1) {