Skip to content

Fix several problems: #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Fix several problems: #1

merged 1 commit into from
Jun 22, 2020

Conversation

alblasco
Copy link
Contributor

  1. As your fixture is session scoped, then you should include an event loop fixture with same scope
  2. Client & Server:
  • await self.writer.drain()' is need to assure data is sent
  • EOF case considered when receiving None
  • close() added

Other changes to simplify the example:

  • encode/decode instead of pickle
  • unused code removed

Note:
Tested using start_server & open_connection (instead of start_unix_server & open_unix_connection)

1) As your fixture is session scoped, then you should include an event loop fixture with same scope
2) Client & Server:
  * `await self.writer.drain()`' is need to assure data is sent
  * EOF case considered when receiving None
  * `close()` added

Other changes to simplify the example:
* encode/decode instead of pickle
* unused code removed

Note:
Tested using start_server & open_connection (instead of start_unix_server & open_unix_connection)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants