summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-05 18:07:46 +0000
committerJeremy Allison <jra@samba.org>2001-07-05 18:07:46 +0000
commit7efaefdf60e1880cf4ab97e1901248abd00acd79 (patch)
tree651359154b8bfe4bd8a97795e65e00ca68dfc034 /source/smbd/reply.c
parent8452300c769b2b046fc4b2fd078e7da0b93cd316 (diff)
downloadsamba-7efaefdf60e1880cf4ab97e1901248abd00acd79.tar.gz
samba-7efaefdf60e1880cf4ab97e1901248abd00acd79.tar.xz
samba-7efaefdf60e1880cf4ab97e1901248abd00acd79.zip
Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
for help on this. Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 3103ed9c8df..21a4eca7146 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -2538,6 +2538,12 @@ int reply_writebraw(connection_struct *conn, char *inbuf,char *outbuf, int size,
follows what WfWg does */
END_PROFILE(SMBwritebraw);
if (!write_through && total_written==tcount) {
+ /*
+ * Fix for "rabbit pellet" mode, trigger an early TCP ack by
+ * sending a SMBkeepalive. Thanks to DaveCB at Sun for this. JRA.
+ */
+ if (!send_keepalive(smbd_server_fd()))
+ exit_server("reply_writebraw: send of keepalive failed");
return(-1);
}