-
Notifications
You must be signed in to change notification settings - Fork 27
prime sandbox ssh #244
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?
prime sandbox ssh #244
Conversation
| print(f" TLS Socket: {tcp_exposure.tls_socket}") | ||
| if tcp_exposure.external_port: | ||
| print(f" External Port: {tcp_exposure.external_port}") | ||
| time.sleep(120) |
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.
Excessive 120-second delay in demo file
The demo has a hardcoded time.sleep(120) (2 minutes) after exposing the TCP port, which is 12x longer than the 10-second sleep used after HTTP port exposure. This appears to be leftover debug or testing code that makes the demo unnecessarily slow to run. A shorter delay (similar to the HTTP case) would be more appropriate for a demo file.
Note
Introduces SSH connectivity and protocol-aware port exposure across SDK and CLI.
prime sandbox sshcommand to create, authorize, and clean up SSH sessions;exposenow supports--protocol(HTTP/TCP/UDP) and shows external endpoints;list-portscan list all exposures across sandboxes.ExposePortRequestacceptsprotocol;ExposedPortincludesexternal_portandexternal_endpoint; newSSHSessionmodel;SandboxClient/AsyncSandboxClientaddlist_all_exposed_ports,create_ssh_session, andclose_ssh_session;exposeaccepts protocol.sandbox_port_expose_demo.pydemonstrating HTTP and TCP exposure with verification.SSHSessionin package__init__.Written by Cursor Bugbot for commit 175fd61. This will update automatically on new commits. Configure here.