summaryrefslogtreecommitdiff
path: root/source3
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
commitaff5f5c15834ffd9b02ea91c7ac146bd4f3cb213 (patch)
tree49cc1abcb52065b0172cbdad9f680c1ca5c2f08a /source3
parent34b8f0b33d88722e09f6e76c6ab61689d40f3229 (diff)
downloadsamba-aff5f5c15834ffd9b02ea91c7ac146bd4f3cb213.tar.gz
samba-aff5f5c15834ffd9b02ea91c7ac146bd4f3cb213.tar.bz2
samba-aff5f5c15834ffd9b02ea91c7ac146bd4f3cb213.zip
Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
for help on this. Jeremy. (This used to be commit 7efaefdf60e1880cf4ab97e1901248abd00acd79)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 3103ed9c8d..21a4eca714 100644
--- a/source3/smbd/reply.c
+++ b/source3/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);
}