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

Resource not closed #1510

Closed
wants to merge 3 commits into from
Closed

Resource not closed #1510

wants to merge 3 commits into from

Conversation

sykorax
Copy link

@sykorax sykorax commented Aug 14, 2020

Hey there,

We might have been identified a problem with the SFTP (2.x) version only. This file has been used by League Flysystem SFTP adapter itensively. We found this in the League package itself as well, however the problem could be solved by changing just a few lines of code - see my pull request.

Since we're having a strong dependency on the adapter pattern - provided by the League package - we cannot get rid of it. This has led us to change these lines.

About the problem: We faced with an issue, when transferring files from a local <-> SFTP destination (and vice-versa) and some of the read streams are just being stuck / not closed

Source was not closed regardless given  mode
code formatting
@sykorax sykorax changed the title 2.0 Resource not closed Aug 14, 2020
$fp existence check
@terrafrost
Copy link
Member

I went ahead and did this here:

f4e017f

I opted not to use yours because it wasn't targeting 1.0, among other reasons. I could have squashed and cherry picked but it was just too much effort idk lol.

Thanks!

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 this pull request may close these issues.

None yet

2 participants