Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ensure that a client can only keep one passive listener open at a time #412

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

drakkan
Copy link
Collaborator

@drakkan drakkan commented Jul 14, 2023

A client might send many PASV commands and never send a transfer command. This will lead to passive ports exhaustion.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.20 🎉

Comparison is base (7bb35a8) 86.25% compared to head (d8aff32) 86.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
+ Coverage   86.25%   86.46%   +0.20%     
==========================================
  Files          11       11              
  Lines        1601     1603       +2     
==========================================
+ Hits         1381     1386       +5     
+ Misses        152      151       -1     
+ Partials       68       66       -2     
Impacted Files Coverage Δ
transfer_pasv.go 76.15% <100.00%> (+2.71%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

A client might send many PASV commands and never send a transfer command.
This will lead to passive ports exhaustion.
Copy link
Owner

@fclairamb fclairamb left a comment

Choose a reason for hiding this comment

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

Good catch!

@fclairamb fclairamb merged commit 3fe6de2 into fclairamb:main Jul 19, 2023
@drakkan
Copy link
Collaborator Author

drakkan commented Jul 19, 2023

Thank you for merging. I think there is also another issue, see here but I'm unable to replicate and the user hasn't provided enough logs to understand what is happening.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants