multi_cleanup closes easy handles ftp session even if easy handle has been removed from multi_handle
Date: Wed, 4 Apr 2007 15:06:09 +0200
I'm having some troubles with the ftp connection caching. Currently i'm
using the multi interface on a single easy handle, to allow non blocking
reads. After a transfer has completed, the easy_handle is removed from the
multi_handle, and stored for later reuse, this works great for http
connections. However for ftp it does not.
The ftp sessions have a close action wich calls the ftp command QUIT. When
the multi_handle is destroyed by multi_cleanup, this is called independent
on if the easy_handle has been destroyed, thus closing the cached
connection, and session needs to be reinited on next use of the easy handle.
Is this by design, or just an overlook. Do i need to cache the multi_handle
too to keep the connection cache?
Received on 2007-04-04