Merge pull request #10345 from kpayson64/real_spinlock_fix

Fix Python poll() server spinlock bug
pull/10347/head
kpayson64 8 years ago committed by GitHub
commit e417739682
  1. 4
      src/python/grpcio/grpc/_server.py

@ -705,6 +705,10 @@ def _serve(state):
state.rpc_states.remove(rpc_state)
if _stop_serving(state):
return
# We want to force the deletion of the previous event
# ~before~ we poll again; if the event has a reference
# to a shutdown Call object, this can induce spinlock.
event = None
def _stop(state, grace):

Loading…
Cancel
Save