Use return value of concurrent queue try_pop to determine
whether to enqueue HTTP session request queue processing
task. The current method of using empty with try_pop/push
without mutex can lead to situation where concurrent queue
is not empty and no task is enqueued.
Closes-Bug: #1447837
Change-Id: Ia475d3fa6b1d0fb540a159d5aed47a3dde96f2fc
(cherry picked from commit c1802eeaf3035fc4bd4fd21a7eaae2e4a827c92e)
Reviewed: https:/ /review. opencontrail. org/10030 github. org/Juniper/ contrail- controller/ commit/ a2cd4c21de3a680 e6344a2d7e3d426 776500979f
Committed: http://
Submitter: Zuul
Branch: R2.20
commit a2cd4c21de3a680 e6344a2d7e3d426 776500979f
Author: Megh Bhatt <email address hidden>
Date: Mon May 4 17:38:44 2015 -0700
Use return value of concurrent queue try_pop to determine
whether to enqueue HTTP session request queue processing
task. The current method of using empty with try_pop/push
without mutex can lead to situation where concurrent queue
is not empty and no task is enqueued.
Closes-Bug: #1447837
Change-Id: Ia475d3fa6b1d0f b540a159d5aed47 a3dde96f2fc 4bd4fd21a7eaae2 e4a827c92e)
(cherry picked from commit c1802eeaf3035fc