mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
c116d960b7
@ -171,8 +171,8 @@ bio_bufferevent_write(BIO *b, const char *in, int inlen)
|
|||||||
|
|
||||||
/* Copy only as much data onto the output buffer as can fit under the
|
/* Copy only as much data onto the output buffer as can fit under the
|
||||||
* high-water mark. */
|
* high-water mark. */
|
||||||
if (bufev->wm_write.high && bufev->wm_write.high >= (outlen+inlen)) {
|
if (bufev->wm_write.high && bufev->wm_write.high <= (outlen+inlen)) {
|
||||||
if (bufev->wm_write.high >= outlen) {
|
if (bufev->wm_write.high <= outlen) {
|
||||||
/* If no data can fit, we'll need to retry later. */
|
/* If no data can fit, we'll need to retry later. */
|
||||||
BIO_set_retry_write(b);
|
BIO_set_retry_write(b);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user