Fix recv buf size calculation
This commit is contained in:
parent
4171390f42
commit
57333d71e9
|
@ -235,7 +235,7 @@ bool SocketClient::recv() {
|
|||
}
|
||||
|
||||
if (index == 1) {
|
||||
int result = nn::socket::Recv(fd, recvBuf, sizeof(MAXPACKSIZE), this->sock_flags);
|
||||
int result = nn::socket::Recv(fd, recvBuf, MAXPACKSIZE, this->sock_flags);
|
||||
if (result < headerSize){
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue