sergi/jsftp — pull request #35 by bancek (2012-11-27 10:03:51+00:00)
Title: Use marks for streaming

Streaming big files (more than one chunk) currently doesn't work.

When `STOR` command is sent jsftp is waiting for result but FTP server only sends mark that passive socket is ready.

I added support for passing marks to callbacks. If mark is received and callback function has property `acceptsMarks`, callback function will be called for mark and actual result. It's up to user to check if response code is mark.

`getGetSocket` and `getPutSocket` now call callback after mark is received (no more timeout hacks for `getPutSocket`). `getPutSocket` also supports done callback (when file is actually uploaded on server).