Missing patch for reconnect during NegotiateProtocol
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 448928481.3790365.1504227862030.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Steven,
Please add a Reviewed-by: Ronnie Sahlberg <[email protected]> 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