Skip to content

fix: keep hosted proxy/run sessions alive and fix plain HTTP routing - #28

Merged
cvl merged 4 commits into
mainfrom
fix/hosted-keepalive-plain-http
Nov 20, 2026
Merged

cvl merged 4 commits into
mainfrom
fix/hosted-keepalive-plain-http

Conversation

@cvl

@cvl cvl commented Nov 20, 2026

Copy link
Copy Markdown
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

cvl added 4 commits November 20, 2026 19:24
`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]>
@cvl
cvl requested a review from a team as a code owner November 20, 2026 17:43
@cvl
cvl merged commit 41dd7a0 into main Nov 20, 2026
4 checks passed
@cvl
cvl deleted the fix/hosted-keepalive-plain-http branch November 21, 2026 16:21
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