-
Notifications
You must be signed in to change notification settings - Fork 0
Fix bare server routing for requests without trailing slash #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders Open Preview |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: sriail <[email protected]>
sriail
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the bare server is running after one user query, the console and the running proxy display the message (to many keepalive connections from this Ip address) and after that the recourses fail to load (is in the proxied URLs) it also says too many keepalive connections from this ip address at clientV3.readBareResponse
Added connection limiter settings to bare server.
Added HTTP and HTTPS agents with keep-alive settings and updated connection limits.
Added HTTP and HTTPS agents with keep-alive settings and connection limits. Updated Fastify server configuration to include new agents and adjusted server timeout settings.
Updated server configuration to disable keep-alive for HTTP and HTTPS agents, addressing the 'too many keepalive requests' error. Adjusted server timeout settings accordingly.
Refactor server configuration to completely disable keep-alive connections and connection pooling.
Refactor server to implement a semaphore for throttling requests and adjust connection handling.
Refactor server to implement a semaphore for scramjet requests, removing connection pooling and timeout settings.
Bare server requests to
/bare(without trailing slash) were falling through to Fastify, returning HTML 404 pages instead of JSON. This broke Ultraviolet and Scramjet proxy clients.Changes
Server routing logic (
server/index.ts)/bare→/bare/beforeshouldRoutecheckResults
/bare/bare/Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.comnode server/index.js(dns block)nslookup example.com(dns block)telemetry.astro.buildnode /home/REDACTED/work/Radius/Radius/node_modules/.bin/astro build(dns block)www.google.comnode server/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.