From: Michael Hampton Date: Mon, 6 Sep 2004 00:59:01 +0000 (+0000) Subject: * file_ops.c: cmd_writ(): Add an unbuffer_output() that I forgot. X-Git-Tag: v7.86~5273 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=04e4d6c8d566cc9ff12ff54844407e84bda9b58e * file_ops.c: cmd_writ(): Add an unbuffer_output() that I forgot. --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index d95682893..eb04434b1 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 625.14 2004/09/06 00:59:01 error + * file_ops.c: cmd_writ(): Add an unbuffer_output() that I forgot. + Revision 625.13 2004/09/05 17:39:09 error * Buffered output needs to be flushed in several places. Added calls to flush_output(). (basically anywhere where we send a response and then @@ -6051,4 +6054,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 1f94f23e9..2430bec35 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -712,6 +712,8 @@ void cmd_writ(char *cmdbuf) int bytes; char buf[4096]; + unbuffer_output(); + bytes = extract_int(cmdbuf, 0); if (CC->upload_fp == NULL) { @@ -726,7 +728,6 @@ void cmd_writ(char *cmdbuf) } cprintf("%d %d\n", SEND_BINARY, bytes); - flush_output(); client_read(buf, bytes); fwrite(buf, bytes, 1, CC->upload_fp); }