-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[uc] Prevent PHP request to get killed when using fclose callback (#26775) #3157
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
Conversation
MorrisJobke
left a comment
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.
Tested together with #3160
| if ($this->lockingEnabled && $operation === 'fopen' && is_resource($result)) { | ||
| $unlockLater = true; | ||
| // make sure our unlocking callback will still be called if connection is aborted | ||
| ignore_user_abort(true); |
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.
undo this later on?
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.
Don't think there is a reliable way to do that, since multiple streams can be opened at the same time and there is no clean way to tell when all of them are closed
|
commit signoff missing |
* Prevent PHP request to get killed when using fclose callback * Add ignore_user_abort everywhere where the time limit is set to 0 Signed-off-by: Robin Appelman <[email protected]>
b490188 to
0aaf209
Compare
|
@karlitschek Backport for #1166? |
|
please backport |
From owncloud/core#26775
For #1166