Skip to content

fix: let Python REQ ports recover after a receive timeout - #599

Open
bhuvan-somisetty wants to merge 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/python-req-timeout-recovery
Open

bhuvan-somisetty wants to merge 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/python-req-timeout-recovery

Conversation

@bhuvan-somisetty

Copy link
Copy Markdown

Fixes #598

Python REQ sockets now set REQ_RELAXED and REQ_CORRELATE, same as the Java fix in #577. After a timeout the port can send again, and a late reply to an old request gets dropped instead of coming back as a fresh read.

Added a test with a real REP peer that doesn't reply. It fails on dev with the "current state" error and passes with this change. Full suite passes.

@bhuvan-somisetty

Copy link
Copy Markdown
Author

@pradeeban this is the Python version of the Java REQ fix from #577. It's a small change and comes with a test. Would appreciate a look whenever you get a chance.

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.

1 participant