[vlc-devel] [PATCH] libavi now support simple SEEK

Andrew Zaikin andrew.zaikin at gmail.com
Wed Jan 2 18:55:24 CET 2008


Remi,
You were right, we don't have to reconnect, we can re-use existing command
connection and establish a new data connection.
The actual problem was with interpreting response from "ABOR" command -
there we are unconditionally waiting for 2 responses. Typically we are
getting 226 (transfer completed) and after that 227 (abort succesfull). In
some circumstances, when you have fast connection to ftp, you data transfer
is already finished, so you will get only one 227 response. I've tried to
make it more intelligent now.

On Jan 2, 2008 8:12 PM, Andrew Zaikin <andrew.zaikin at gmail.com> wrote:

> I don't have that deep knowledge in ftp, so I need some assistance here.
> Previously, when ftp module was seeking, it does ftp_StopStream(), which
> send "ABOR" command, and close the corresponding network stream. After that
> it was trying to set passive mode and do "REST" command, which obviously
> failed. So that's why I decided that re-opening connection might be the good
> idea.
> Should we try to issue ABOR command and try to do REST without closing
> connection?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080102/05f8eb5b/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ftpseek2.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080102/05f8eb5b/attachment.ksh>


More information about the vlc-devel mailing list