You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When it happens I have to explicitly set connection variable to null by calling the temporary method below and try FTPing my file again which solves the problem.
public function disconnect()
{
$this->connection = null;
}
Suggestion:
We need a way of manually disconnecting from the open/currently used adapter so that when we catch this exception we can assume that it was a timeout issue or something else then try to FTPing our file one more time before giving up. Temporary solution below solves my problem but I have to fork and modify the library for such a small fix.
Hi,
Time to time this line causes error below. I had to remove suppression and catch it with error_get_last function otherwise it throws this exception.
When it happens I have to explicitly set connection variable to
null
by calling the temporary method below and try FTPing my file again which solves the problem.Suggestion:
We need a way of manually disconnecting from the open/currently used adapter so that when we catch this exception we can assume that it was a timeout issue or something else then try to FTPing our file one more time before giving up. Temporary solution below solves my problem but I have to fork and modify the library for such a small fix.
Thanks
The text was updated successfully, but these errors were encountered: