From aff5f5c15834ffd9b02ea91c7ac146bd4f3cb213 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Jul 2001 18:07:46 +0000 Subject: Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB for help on this. Jeremy. (This used to be commit 7efaefdf60e1880cf4ab97e1901248abd00acd79) --- source3/smbd/reply.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/smbd') 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); } -- cgit