Re: [PATCH] nbd: set sk->sk_sndtimeo for our sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/08/2017 01:39 PM, josef@xxxxxxxxxxxxxx wrote:
> From: Josef Bacik <jbacik@xxxxxx>
> 
> If the nbd server stops receiving packets altogether we will get stuck
> waiting for them to receive indefinitely as the tcp buffer will never
> empty, which looks like a deadlock.  Fix this by setting the sk send
> timeout to our configured timeout, that way if the server really
> misbehaves we'll disconnect cleanly instead of waiting forever.

Queued up for 4.13, thanks.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux