Repository navigation
fix: keep hosted proxy/run sessions alive and fix plain HTTP routing - #28
Merged
Merged
Conversation
cvl
commented
Nov 20, 2026
Contributor
- test(upstreams): skip the NO_PROXY check when the host firewall blocks it
- fix(proxy): one plain HTTP request per tunnel through a SOCKS5 proxy
- fix(proxy): send plain HTTP through a tunnel on hosted routes
- fix(session): keep hosted proxy and run sessions alive
`shellroute proxy` and `shellroute run` never sent the session keep-alive that the interactive shell sends from its balance monitor, so the service ended their hosted sessions a few minutes after they started, even while traffic flowed. These sessions now send it every 60 seconds until they stop. Interactive sessions are unchanged. Signed-off-by: Vitas Civilis <[email protected]>
A plain http:// request through a hosted route was passed on to the gateway in absolute form. The gateway accepts only CONNECT, so the request failed with 405. It now goes through a CONNECT tunnel to the target's port 80 in origin form, as with a SOCKS5 proxy. Each such request asks the target to close the connection after its response, so a client that reuses its proxy connection for another host opens a new tunnel instead of reaching the first host again. Requests through a user's own HTTP or HTTPS proxy are unchanged. Signed-off-by: Vitas Civilis <[email protected]>
Through a user's own SOCKS5 proxy, a client that reused its connection to the local proxy for a plain http:// request to another host reached the first host again: the tunnel stayed open to the first target. Plain HTTP requests through SOCKS5 now ask the target to close after its response, as on hosted routes, so each request gets its own tunnel. HTTPS traffic and own HTTP or HTTPS proxies are unchanged. Signed-off-by: Vitas Civilis <[email protected]>
…s it On macOS the firewall can block incoming connections for a python3 build. The host marker then does not answer on the LAN address even for a direct request, so C-06 failed for every proxy without any proxy or shellroute involved. The suite now tries the direct request first and, when it is blocked, skips C-06 and prints the reason. CI keeps the check strict. The host marker's error output goes to a log file instead of the terminal. Signed-off-by: Vitas Civilis <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.