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

SocketApi: Fix crash with readyRead() after disconnected() #7044 #7045

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

ckamm
Copy link
Contributor

@ckamm ckamm commented Feb 18, 2019

With the recent bugfix to avoid sending messages on dead connections
0bfe7ac
the client now crashed if readyRead() was received after disconnected()
for the socket as the listener for that connection was already removed.

This code fixes it by still invoking the handler from readyRead() but
passing a SocketListener that won't attempt to send messages.

With the recent bugfix to avoid sending messages on dead connections
0bfe7ac
the client now crashed if readyRead() was received after disconnected()
for the socket as the listener for that connection was already removed.

This code fixes it by still invoking the handler from readyRead() but
passing a SocketListener that won't attempt to send messages.
@ckamm ckamm added this to the 2.5.4 milestone Feb 18, 2019
@ckamm ckamm self-assigned this Feb 18, 2019
@ckamm ckamm requested a review from guruz February 18, 2019 09:57
@guruz guruz requested a review from ogoffart February 19, 2019 06:53
@guruz guruz merged commit 3f429da into 2.5 Feb 19, 2019
@delete-merged-branch delete-merged-branch bot deleted the 7044-fix-crash-disconnected-sockets branch February 19, 2019 06:55
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