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

Cancelling the LWS service from the handler #100

Merged
merged 13 commits into from
Jan 16, 2020
Merged

Cancelling the LWS service from the handler #100

merged 13 commits into from
Jan 16, 2020

Conversation

MushMal
Copy link
Contributor

@MushMal MushMal commented Dec 26, 2019

Cancelling the LWS event loop from within the handler as the LWS will still return calls from the previous service call to the next one resulting in deallocated memory being accessed
Checking whether to access the custom field and the object graph only when we need to handle the message
Added unit test injecting timeout for connection
Re-setting the state machine state on error to allow for further calls to connect from the client application.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… still return calls from the previous service call to the next one resulting in deallocated memory being accessed

Checking whether to access the custom field and the object graph only when we need to handle the message
Added unit test injecting timeout for connection
Re-setting the state machine state on error to allow for further calls to connect from the client application.
@codecov-io
Copy link

codecov-io commented Jan 13, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@6090fc8). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #100   +/-   ##
=========================================
  Coverage          ?   15.92%           
=========================================
  Files             ?       33           
  Lines             ?     7555           
  Branches          ?        0           
=========================================
  Hits              ?     1203           
  Misses            ?     6352           
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6090fc8...6efcb61. Read the comment docs.

@Sean-Der Sean-Der mentioned this pull request Jan 15, 2020
@MushMal MushMal merged commit 911a4af into master Jan 16, 2020
@MushMal MushMal deleted the connect_timeout branch January 16, 2020 20:01
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.

None yet

3 participants