mirror of
https://github.com/postgres/postgres.git
synced 2025-06-06 00:02:36 -04:00
Thomas pointed out this bug in my non-blocking stuff.
Alfred Perlstein
This commit is contained in:
parent
ea81522034
commit
b68a56a5e9
@ -25,7 +25,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.39 2000/02/07 23:10:11 petere Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.40 2000/04/11 19:00:31 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -115,6 +115,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn)
|
|||||||
Max(conn->outBufSize - conn->outCount, 0), nbytes);
|
Max(conn->outBufSize - conn->outCount, 0), nbytes);
|
||||||
return EOF;
|
return EOF;
|
||||||
}
|
}
|
||||||
|
/* fixup avail for while loop */
|
||||||
|
avail = Max(conn->outBufSize - conn->outCount, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user