Skip to content

Catch ECONNRESET too for Windows#86

Merged
adfoster-r7 merged 1 commit into
rapid7:masterfrom
zeroSteiner:fix/issue/83
Jun 30, 2026
Merged

Catch ECONNRESET too for Windows#86
adfoster-r7 merged 1 commit into
rapid7:masterfrom
zeroSteiner:fix/issue/83

Conversation

@zeroSteiner

@zeroSteiner zeroSteiner commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Catch ECONNRESET which is what Windows raises. This makes sure that #timed_recvfrom behaves on Windows as it does on Linux when the peer is unreacable and it's a "connected" UDP socket.

Comment thread spec/rex/socket/udp_spec.rb.orig Outdated
@sjanusz-r7 sjanusz-r7 self-assigned this Jun 30, 2026
@sjanusz-r7

Copy link
Copy Markdown
Contributor

Can merge once the .orig file is gone 👍

@adfoster-r7 adfoster-r7 merged commit 5d7f1e5 into rapid7:master Jun 30, 2026
21 checks passed
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.

Windows UDP behaviour issue

3 participants