Merge pull request #3045 from nathanielmanistaatgoogle/parameter-reassignment

Fix parameter reassignment defect
pull/3044/head
Masood Malekghassemi 9 years ago
commit 7c70bc2673
  1. 4
      src/python/grpcio/grpc/_links/service.py

@ -257,11 +257,11 @@ class _Kernel(object):
termination = None
else:
termination = links.Ticket.Termination.COMPLETION
ticket = links.Ticket(
early_read_ticket = links.Ticket(
call, rpc_state.sequence_number, None, None, None, None, None,
None, payload, None, None, None, termination, None)
rpc_state.sequence_number += 1
self._relay.add_value(ticket)
self._relay.add_value(early_read_ticket)
if ticket.payload is not None:
call.write(rpc_state.response_serializer(ticket.payload), call)

Loading…
Cancel
Save