#46 Added config file support.
This commit is contained in:
parent
5bed17a8af
commit
e6a72b2f78
5 changed files with 283 additions and 89 deletions
|
@ -529,6 +529,10 @@ void Client::onRead(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
|
|||
return client->close();;
|
||||
}
|
||||
|
||||
if ((size_t) nread > (kRecvBufSize - 8 - client->m_recvBufPos)) {
|
||||
return client->close();;
|
||||
}
|
||||
|
||||
client->m_recvBufPos += nread;
|
||||
|
||||
char* end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue