Fixed a problem where a full buffer on the read side would cause the
connection to be closed.
This commit is contained in:
parent
ac111ee8c6
commit
26587ef1e7
@ -1,3 +1,9 @@
|
|||||||
|
2001-10-18 Robert James Kaes <rjkaes@flarenet.com>
|
||||||
|
|
||||||
|
* src/buffer.c (readbuff): Fixed a problem where a full buffer
|
||||||
|
would cause the connection to be closed. Thanks to Jeffrey
|
||||||
|
Wheelhouse for helping me find this problem.
|
||||||
|
|
||||||
2001-09-29 Robert James Kaes <rjkaes@flarenet.com>
|
2001-09-29 Robert James Kaes <rjkaes@flarenet.com>
|
||||||
|
|
||||||
* configure.in: Uses any CFLAGS variable passed to the configure
|
* configure.in: Uses any CFLAGS variable passed to the configure
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: buffer.c,v 1.11 2001-09-15 21:24:18 rjkaes Exp $
|
/* $Id: buffer.c,v 1.12 2001-10-18 21:45:54 rjkaes Exp $
|
||||||
*
|
*
|
||||||
* The buffer used in each connection is a linked list of lines. As the lines
|
* The buffer used in each connection is a linked list of lines. As the lines
|
||||||
* are read in and written out the buffer expands and contracts. Basically,
|
* are read in and written out the buffer expands and contracts. Basically,
|
||||||
@ -198,7 +198,7 @@ ssize_t readbuff(int fd, struct buffer_s *buffptr)
|
|||||||
if (!buffer)
|
if (!buffer)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
bytesin = read(fd, buffer, MAXBUFFSIZE - buffer_size(buffptr) - 1);
|
bytesin = read(fd, buffer, MAXBUFFSIZE - buffer_size(buffptr));
|
||||||
|
|
||||||
if (bytesin > 0) {
|
if (bytesin > 0) {
|
||||||
newbuffer = saferealloc(buffer, bytesin);
|
newbuffer = saferealloc(buffer, bytesin);
|
||||||
|
Loading…
Reference in New Issue
Block a user