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
I had the issue while using the Ftp-Adapter with Sonata's Notification Queue.
Basically the Notification listener is running for some hours before a new Event is triggered and the service which uses the KnpGaufretteBundle is executed. As the service is a singleton there is no new initialisation of the Ftp connection.
So in the meantime the Ftp connection timed out but isConnected still returns true.
My workaround was to change the function as follows: Before:
I had the issue while using the
Ftp
-Adapter with Sonata's Notification Queue.Basically the Notification listener is running for some hours before a new Event is triggered and the service which uses the
KnpGaufretteBundle
is executed. As the service is a singleton there is no new initialisation of the Ftp connection.So in the meantime the Ftp connection timed out but
isConnected
still returns true.My workaround was to change the function as follows:
Before:
After:
Do you think this 'workaround' makes sense to be adapted to the official FtpAdapter? I am happy to provide a PR if needed.
The text was updated successfully, but these errors were encountered: