From 8e5e5090260218201a0628755db4d3485ae906b1 Mon Sep 17 00:00:00 2001 From: Ethan Hugg Date: Fri, 15 May 2015 16:58:56 -0700 Subject: [PATCH] Bug 1165423 - WebRTC Fix DTLS handshake by expanding UDP buffer. r=rjesup --HG-- extra : rebase_source : ad42c8dcf8282c13383af54ac26bb2b0ce740c62 --- netwerk/base/nsUDPSocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netwerk/base/nsUDPSocket.cpp b/netwerk/base/nsUDPSocket.cpp index 2a43f721d496..2b2a5d68e856 100644 --- a/netwerk/base/nsUDPSocket.cpp +++ b/netwerk/base/nsUDPSocket.cpp @@ -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) {