Skip to content
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

Silent failure when unable to bind port #31

Closed
KenanHH opened this issue Aug 20, 2024 · 0 comments · Fixed by #35
Closed

Silent failure when unable to bind port #31

KenanHH opened this issue Aug 20, 2024 · 0 comments · Fixed by #35
Assignees

Comments

@KenanHH
Copy link
Contributor

KenanHH commented Aug 20, 2024

When the application attempts to bind to a port that is already in use or otherwise unavailable, it exits without reporting any error. The application terminates with a regular status code instead of providing feedback about the failure to bind the port.

Steps to Reproduce:

  • Start an instance of the application binding to a specific port (e.g., 8080).
  • Attempt to start another instance of the application that tries to bind to the same port.
  • Observe that the second instance exits silently without any error message or indication of the failure.

Expected Behavior:

The application should provide an error message indicating that it could not bind to the specified port and should exit with a non-zero status code.

Actual Behavior:

The application exits silently with a regular status code, providing no indication of the failure to bind the port.

[22:55] ubuntu@kenan-remote ~/Projects/FastEdge-lib  ./target/release/cli http --port 80 --wasm /home/ubuntu/Projects/FastEdgeApps/rust/target/wasm32-wasi/release/jwt_token_validate.wasm --envs jwt-sign-secret=kenan-testing

[22:55] ubuntu@kenan-remote ~/Projects/FastEdge-lib $ echo $?
0
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 a pull request may close this issue.

2 participants