Skip to content

Create new router POST request for retries - #1

Open
ramazan199 wants to merge 1 commit into
masterfrom
fix/router-request-retry
Open

Create new router POST request for retries#1
ramazan199 wants to merge 1 commit into
masterfrom
fix/router-request-retry

Conversation

@ramazan199

Copy link
Copy Markdown
Member

Fix router send retry behavior by creating a fresh HttpWebRequest for each retry attempt.

Previously the retry loop reused the same request object after a failed send. Since HttpWebRequest and its request stream are one-use, a later retry could fail with Cannot access a disposed object: System.Net.RequestBufferingStream, hiding the original transport problem and preventing retries from working correctly.

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