Skip to content
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

issues/197: During shutdown, close the writer & not reader #198

Merged
merged 2 commits into from
Feb 18, 2020
Merged

Conversation

komuw
Copy link
Owner

@komuw komuw commented Feb 18, 2020

Thank you for contributing to naz.
Every contribution to naz is important.

Contributions are under the MIT License.

Answer the following questions,

What(What have you changed?)

  • During shutdown, close the writer & not reader end of the transport protocol

Why(Why did you change it?)

  • Fixes: Incorrect transport closing #197
  • naz.Client.writer.close() also closes the transport, on which both the naz.Client.writer and
    naz.Client.reader are based on. This means that the reader is also closed.
    This may not be what we want. When we call naz.Client.shutdown() we want to close the writer,
    however; we want to still be able to read. This is because the SMSC may still send the UNBIND_RESP and we want to receive it

References:

@komuw komuw changed the title v issues/197: During shutdown, close the writer & not reader Feb 18, 2020
@komuw komuw marked this pull request as ready for review February 18, 2020 16:12
@komuw komuw merged commit c74983c into master Feb 18, 2020
@komuw komuw deleted the issues/197 branch February 18, 2020 16:22
komuw added a commit that referenced this pull request Sep 18, 2020
This is to check that #197 is fixed.
This is an update to PR: #198
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.

Incorrect transport closing
1 participant