Linux CIFS filesystem development
 help / color / mirror / Atom feed
* Missing patch for reconnect during NegotiateProtocol
       [not found] ` <448928481.3790365.1504227862030.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-09-01  1:08   ` Leif Sahlberg
  0 siblings, 0 replies; only message in thread
From: Leif Sahlberg @ 2017-09-01  1:08 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA; +Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w

Steven,

Please add a Reviewed-by: Ronnie Sahlberg <lsahlber-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
for the patch in the link below :

http://www.spinics.net/lists/linux-cifs/msg12842.html


I have tested this patch using samba and iptables.


Testing :
Connect to an smb2 share.
On server, add these iptable rules :

sudo iptables -I INPUT 1 -p tcp --dport 445 --tcp-flags SYN,RST,ACK,FIN SYN -j ACCEPT
sudo iptables -I INPUT 2 -p tcp --dport 445 -j DROP

Eventually the Keepalives that are not responded to result in a TCP session reconnect
followed by a Negotiate Protocol request.

With this patch, every few minutes the client will reconnect a new TCP session and try NegotiateProtocol again.

Without this patch, the client is stuck waiting for the first Negotiate Protocol forever.


regards
ronnie sahlberg

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-01  1:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <448928481.3790365.1504227862030.JavaMail.zimbra@redhat.com>
     [not found] ` <448928481.3790365.1504227862030.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-01  1:08   ` Missing patch for reconnect during NegotiateProtocol Leif Sahlberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox