From 7efaefdf60e1880cf4ab97e1901248abd00acd79 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Jul 2001 18:07:46 +0000 Subject: [PATCH] Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB for help on this. Jeremy. --- source/smbd/reply.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.47.3