Skip to content

fix: send WHIP/WHEP requests with HttpClient, bounded and apart from peer control - #462

Merged
devopvoid merged 2 commits into
mainfrom
fix/whip-whep-http-client
Oct 27, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/whip-whep-http-client

Conversation

@devopvoid

@devopvoid devopvoid commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner
  • POST and DELETE ran on the control pool, so a slow WHIP or WHEP server held up the control tasks of other peers. They now go through java.net.http.HttpClient and hold no thread while they wait.
  • The session's timeout bounds a request as a whole, so a response that trickles in cannot stretch it. The session's deadline or a cancellation cuts off a request still out. The deletion has the same bound.
  • The offer follows 307 and 308 redirects, as RFC 9725 asks of clients: up to five, never from https to http, with the bearer token.
  • Limits of HttpClient: no SOCKS proxies; proxy credentials only as Basic, and only for sessions without a bearer token, since HttpClient drops the token once it answers for credentials. Ending a request that still waits for its head needs Java 16; before, it ends with its timeout.

…peer control

POST and DELETE ran on the control pool, so a slow server held up the
control tasks of other peers, and only each read of a response was
bounded. They now go through java.net.http.HttpClient and hold no thread
while they wait. The session's timeout bounds a request as a whole, and
the session's deadline or a cancellation cuts off a request still out.
The offer follows 307 and 308 redirects, as RFC 9725 requires.
@devopvoid devopvoid reopened this Oct 27, 2026
@devopvoid
devopvoid changed the base branch from build/java-11 to main October 27, 2026 16:45
@devopvoid
devopvoid added this pull request to stack #465 October 27, 2026 16:47
@devopvoid
devopvoid force-pushed the fix/whip-whep-http-client branch from 61b3291 to 178d95f Compare October 27, 2026 17:09
@devopvoid
devopvoid merged commit cea4839 into main Oct 27, 2026
39 of 40 checks passed
@devopvoid
devopvoid deleted the fix/whip-whep-http-client branch October 28, 2026 15:51
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