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

fix: use semaphore to resolve blocked connections #13

Merged
merged 3 commits into from
Dec 22, 2024

Conversation

X1r0z
Copy link
Owner

@X1r0z X1r0z commented Dec 22, 2024

  1. use semaphore to resolve blocked connections when multi connections are coming
  2. use join macro when accept new connections
  3. rename some symbols

Resolves: #12

1. use semaphore to resolve blocked connections when multi connections
   are coming
2. use join macro when accept new connections
3. rename some symbols
@X1r0z X1r0z added the bug Something isn't working label Dec 22, 2024
@X1r0z X1r0z self-assigned this Dec 22, 2024
Copy link
Owner Author

@X1r0z X1r0z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need update

src/forward.rs Outdated Show resolved Hide resolved
src/forward.rs Outdated Show resolved Hide resolved
src/forward.rs Outdated Show resolved Hide resolved
use more reasonable variable names
add semaphore support in `socket_to_remote` function
Copy link
Owner Author

@X1r0z X1r0z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@X1r0z X1r0z merged commit fda96b1 into main Dec 22, 2024
@X1r0z X1r0z deleted the bugfix/blocked-connections branch December 22, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection is blocked when multiple connections coming
1 participant