Anyone know what causes this error in mathopd 1.5p3 (FreeBSD port)?

Sat Jul 24 11:54:25 2004 [438] input buffer full
Sat Jul 24 14:12:03 2004 [438] input buffer full
Sun Jul 25 11:31:55 2004 [438] input buffer full
Tue Jul 27 19:49:52 2004 [438] input buffer full

I can't see why any buffers would get full when the server in question
is very quiet at the moment (the main DNS entries for it have yet to be
made active).  The message comes from core.c (see below).  Perhaps
someone who understands the data structure involved can work out what
could cause this error message.

Cheers!

- Martin.


core.c 
static int read_connection(struct connection *cn)
{
        size_t bytestoread, bytestomove, offset;
        ssize_t nr;

        bytestoread = cn->header_input.ceiling - cn->header_input.end;
        if (bytestoread == 0) {
                offset = cn->header_input.start - cn->header_input.floor;
                if (offset == 0) {
                        log_d("input buffer full");
                        close_connection(cn);
                        return -1;
                }
                bytestomove = cn->header_input.end - cn->header_input.start;
                memmove(cn->header_input.floor, cn->header_input.start, bytestomove);
                cn->header_input.start -= offset;
                cn->header_input.middle -= offset;
                cn->header_input.end -= offset;
                bytestoread = cn->header_input.ceiling - cn->header_input.end;
        }


Reply via email to