Skip to content

fix(Net): Dispatch ErrorNotification to socket-specific handler only#5106

Merged
matejk merged 1 commit intomainfrom
4976-socket-reactor-error-dispatch
Dec 17, 2025
Merged

fix(Net): Dispatch ErrorNotification to socket-specific handler only#5106
matejk merged 1 commit intomainfrom
4976-socket-reactor-error-dispatch

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Dec 17, 2025

Summary

When an exception occurs during socket event processing in SocketReactor::run(), onError(socket, ...) is called with the specific socket that caused the error. However, the error notification was being dispatched to ALL registered handlers instead of only the handler for that socket.

This fix changes onError(const Socket& socket, ...) to call dispatch(socket, notification) instead of dispatch(notification), ensuring the error is routed only to the relevant socket's observer.

Closes #4976

@matejk matejk merged commit abfd684 into main Dec 17, 2025
86 checks passed
@matejk matejk deleted the 4976-socket-reactor-error-dispatch branch December 17, 2025 23:38
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.

Net: SocketReactor dispatches ErrorNotification to all observers

2 participants