From: Leif Sahlberg <lsahlber-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Missing patch for reconnect during NegotiateProtocol
Date: Thu, 31 Aug 2017 21:08:06 -0400 (EDT) [thread overview]
Message-ID: <2028844886.3790430.1504228086410.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <448928481.3790365.1504227862030.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
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
parent reply other threads:[~2017-09-01 1:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <448928481.3790365.1504227862030.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2028844886.3790430.1504228086410.JavaMail.zimbra@redhat.com \
--to=lsahlber-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox