Merge lp:~soren/nova/lp716427 into lp:~hudson-openstack/nova/trunk
|Approved by:||Soren Hansen on 2011-02-10|
|Merged at revision:||660|
|Diff against target:||
12 lines (+1/-1)
1 file modified
|To merge this branch:||bzr merge lp:~soren/nova/lp716427|
Get a fresh connection in rpc.cast rather than using a recycled one.
Description of the Change
Addresses bug 716427
Requests coming into the api server through wsgi get each their own thread. If two requests come in at almost the same time and both want to do an rpc.cast, we get into trouble because rpc.cast uses a recycled connection, meaning that the two calls to rpc.cast both use the same connection. This doesn't work.
This is a minimal patch to fix this particular problem. The greater question is: Is there really any point in recycling these connections anywhere?