mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fixed GH #2570: DialogSocket: receiveStatusMessage() - line length limit applies to entire multi-line message
This commit is contained in:
parent
98ba4617ed
commit
5d3d62bb54
@ -31,7 +31,7 @@ DialogSocket::DialogSocket():
|
||||
}
|
||||
|
||||
|
||||
DialogSocket::DialogSocket(const SocketAddress& address):
|
||||
DialogSocket::DialogSocket(const SocketAddress& address):
|
||||
StreamSocket(address),
|
||||
_pBuffer(0),
|
||||
_pNext(0),
|
||||
@ -41,7 +41,7 @@ DialogSocket::DialogSocket(const SocketAddress& address):
|
||||
}
|
||||
|
||||
|
||||
DialogSocket::DialogSocket(const Socket& socket):
|
||||
DialogSocket::DialogSocket(const Socket& socket):
|
||||
StreamSocket(socket),
|
||||
_pBuffer(0),
|
||||
_pNext(0),
|
||||
@ -161,7 +161,7 @@ int DialogSocket::receiveStatusMessage(std::string& message)
|
||||
while (status <= 0)
|
||||
{
|
||||
message += '\n';
|
||||
status = receiveStatusLine(message, MAX_LINE_LENGTH);
|
||||
status = receiveStatusLine(message, message.length() + MAX_LINE_LENGTH);
|
||||
}
|
||||
}
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user