mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix: block write
This commit is contained in:
@@ -60,7 +60,7 @@ _blockwrite(int fd, const char * buffer, size_t sz) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
sz -= bytes;
|
sz -= bytes;
|
||||||
buffer += sz;
|
buffer += bytes;
|
||||||
sleep(0);
|
sleep(0);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user