Imported Upstream version 2.7.4
This commit is contained in:
parent
fd413a3168
commit
c9cb2187ee
290 changed files with 7473 additions and 2607 deletions
|
|
@ -374,6 +374,11 @@ std::string Socket::read()throw(nut::IOException)
|
|||
|
||||
// Read new buffer
|
||||
size_t sz = read(&buff, 256);
|
||||
if(sz==0)
|
||||
{
|
||||
disconnect();
|
||||
throw nut::IOException("Server closed connection unexpectedly");
|
||||
}
|
||||
_buffer.assign(buff, sz);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue