[Samba] The connection would be broken when read rate is too big

Ralph Böhme slow at samba.org
Thu Mar 2 10:03:50 UTC 2017


On Wed, Mar 01, 2017 at 05:12:23PM -0800, Jeremy Allison wrote:
> On Wed, Mar 01, 2017 at 04:29:49PM -0800, Jeremy Allison wrote:
> > On Wed, Mar 01, 2017 at 08:31:32AM +0000, Chenyehua via samba wrote:
> > > I don’t know why the fd is marked to readable when the send queue is more than the max.
> > > Or why mark the fd readable but not allocate memory to the state->req.
> > > 
> > > My solution: Allocate memory to the state->req before return when the send
> > > queue is more than the max in smbd_smb2_request_next_incoming function.
> > > 
> > > Could you give us some help about the problem.
> > 
> > I'm looking at this now. Your report looks correct.
> > Can you log a bug at bugzilla.samba.org so we can
> > track this ?
> 
> Can you try the following (raw and untested) patch ?

Fwiw, I looked into this as well and came to the same conclusion.

Cheerio!
-slow



More information about the samba-technical mailing list