Re: [PATCH 0/1] fix idle connections cleanup

2020-05-02 Thread William Dauchy
Hello Olivier,

On Sat, May 02, 2020 at 10:11:26PM +0200, Olivier Houchard wrote:
> And I think your fix is correct, so I will apply it as-is. However, I
> think it should be applied to previous branches, that also had idle
> connection pools. It is probably less noticable before 079cb9af22da6,
> because before that patch, one thread couldn't reuse a connection owned
> by another thread, so to reproduce it you'd have to test it until you
> hit the same thread twice, but I don't see why it wouldn't be an issue
> tgere

Thanks for the review, I hope it is not too late to send a v2 with a
small fix I realised after sending my first version.
Will also change the commit message regarding the backport.


Thanks,
-- 
William



Re: [PATCH 0/1] fix idle connections cleanup

2020-05-02 Thread Olivier Houchard
Hi William,

On Sat, May 02, 2020 at 09:52:35PM +0200, William Dauchy wrote:
> Hello Olivier,
> 
> The following patch is an attempt to fix a change of behavior we encounter
> following commit:
> 
> 079cb9af22da6 ("MEDIUM: connections: Revamp the way idle connections are 
> killed")
> being the origin of this new behaviour.
> 
> All details are in the commit message itself.
> The approach is most likely not the good one but feel free to advise so
> I may improve it.
> 
This is a good catch !

And I think your fix is correct, so I will apply it as-is. However, I
think it should be applied to previous branches, that also had idle
connection pools. It is probably less noticable before 079cb9af22da6,
because before that patch, one thread couldn't reuse a connection owned
by another thread, so to reproduce it you'd have to test it until you
hit the same thread twice, but I don't see why it wouldn't be an issue
tgere

Thanks a lot !

Olivier



[PATCH 0/1] fix idle connections cleanup

2020-05-02 Thread William Dauchy
Hello Olivier,

The following patch is an attempt to fix a change of behavior we encounter
following commit:

079cb9af22da6 ("MEDIUM: connections: Revamp the way idle connections are 
killed")
being the origin of this new behaviour.

All details are in the commit message itself.
The approach is most likely not the good one but feel free to advise so
I may improve it.

William Dauchy (1):
  BUG/MEDIUM: connections: force connections cleanup on server changes

 include/proto/server.h |  1 +
 src/server.c   | 37 -
 2 files changed, 37 insertions(+), 1 deletion(-)

Thanks,
-- 
William