curl-library
[PATCH] ftp code turned state machine, step 1?
Date: Wed, 5 Jan 2005 15:35:11 +0100 (CET)
Hey
Since we introduced the multi interface for non-blocking URL transfers (back
in 2002), we have had this outstanding issue about FTP transfers being far too
blocking at certain states during transfers.
I'm about to improve this situation by converting the FTP code into a state
machine, where sending and receiving data is done in a
multi-interface-friendly way.
Anyway, attached to this mail is my first trembling attempt that converts
parts of the FTP code into a state machine. This is mainly only done for the
connect phase (just after the TCP connect) so far but shows pretty good how
the code will end up looking if we go this route.
I just wanted to show you what I'm working on and let you have a chance to
comment on this before I go bury myself even more into this... :-)
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.html
- TEXT/PLAIN attachment: ftp-statemachine.patch