]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
authorJeremy Allison <jra@samba.org>
Thu, 5 Jul 2001 18:07:46 +0000 (18:07 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 5 Jul 2001 18:07:46 +0000 (18:07 +0000)
for help on this.
Jeremy.

source/smbd/reply.c

index 3103ed9c8dfc59c2135d36866744a12b32a851b3..21a4eca71465330a6433954a6ef5e58bb4eda552 100644 (file)
@@ -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);
   }