diff --git a/drivers/unix/packet_peer_udp_posix.cpp b/drivers/unix/packet_peer_udp_posix.cpp index 7de54df043a..a146a4a09ff 100644 --- a/drivers/unix/packet_peer_udp_posix.cpp +++ b/drivers/unix/packet_peer_udp_posix.cpp @@ -160,7 +160,7 @@ void PacketPeerUDPPosix::close(){ ::close(sockfd); sockfd=-1; sock_type = IP::TYPE_NONE; - rb.resize(8); + rb.resize(16); queue_count=0; } @@ -275,7 +275,7 @@ PacketPeerUDPPosix::PacketPeerUDPPosix() { queue_count=0; peer_port=0; sock_type = IP::TYPE_NONE; - rb.resize(8); + rb.resize(16); } PacketPeerUDPPosix::~PacketPeerUDPPosix() { diff --git a/platform/windows/packet_peer_udp_winsock.cpp b/platform/windows/packet_peer_udp_winsock.cpp index 9f1617d5400..e5eb062165b 100644 --- a/platform/windows/packet_peer_udp_winsock.cpp +++ b/platform/windows/packet_peer_udp_winsock.cpp @@ -154,7 +154,7 @@ void PacketPeerUDPWinsock::close(){ ::closesocket(sockfd); sockfd=-1; sock_type = IP::TYPE_NONE; - rb.resize(8); + rb.resize(16); queue_count=0; } @@ -290,7 +290,7 @@ PacketPeerUDPWinsock::PacketPeerUDPWinsock() { queue_count=0; peer_port=0; sock_type = IP::TYPE_NONE; - rb.resize(8); + rb.resize(16); } PacketPeerUDPWinsock::~PacketPeerUDPWinsock() {