Fix Python poll() server spinlock bug

pull/10345/head
Ken Payson 8 years ago
parent 98a723787f
commit c9a3aaaa54
  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