Fix port selection for server

Commit 31e65be introduces a bug which causes starting server on a randomly
selected port.
pull/1036/head
Arkadiusz Bokowy 10 years ago
parent c3be769409
commit 5d85675b56
  1. 3
      src/python/src/grpc/early_adopter/implementations.py

@ -71,7 +71,8 @@ class _Server(interfaces.Server):
_ONE_DAY_IN_SECONDS)
self._fore_link = _fore.ForeLink(
self._pool, self._breakdown.request_deserializers,
self._breakdown.response_serializers, None, self._key_chain_pairs)
self._breakdown.response_serializers, None, self._key_chain_pairs,
port=self._port)
self._back.join_fore_link(self._fore_link)
self._fore_link.join_rear_link(self._back)
self._fore_link.start()

Loading…
Cancel
Save