Bug 134422 - ftp/vsftpd 421 data timeout (with ssl)
Summary: ftp/vsftpd 421 data timeout (with ssl)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 15:30 UTC by Andreas Schwarz
Modified: 2009-06-04 19:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwarz 2009-05-10 15:30:02 UTC
After upgrading vsftpd from 2.0.7 to 2.1.0 transfers (download or upload 
via ssl) will be interrupted after 300s (idle timeout for data), 
log message "421 Data timeout". It seems that the idle timer is not reset
when packets transmitted via ssl. When setting "data_connection_timeout"
to a high value the problem does not occur (because timeout never reached).

I've tested this behavior with lftp (freebsd) and filezilla (windows),
depending on the client the transmission continues (if the client is able
reconnect).

I'm not sure if this is a general or FreeBSD port specific bug.

Fix: 

Not really a fix, set "data_connection_timeout" (vsfptd.conf) to 
a high value.
How-To-Repeat: Start a down or upload which takes longer then the default idle timeout
and watch the logfile.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2009-05-11 21:46:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Assign to maintainer
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2009-05-20 12:39:50 UTC
State Changed
From-To: open->feedback

Comment 3 Andreas.Schwarz 2009-05-20 22:20:11 UTC
No, this is another problem (or feature), which is different from the bug I've reported
(for compatibility reasons (with filezilla) require_ssl_reuse=NO is already set). SSL data
connections are working until the timout is reached.
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2009-05-21 04:59:39 UTC
State Changed
From-To: feedback->analyzed

- Send a mail upstream 
this might be a general problem.
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-05-30 21:36:13 UTC
dinoex      2009-05-30 20:35:59 UTC

  FreeBSD ports repository

  Modified files:
    ftp/vsftpd           Makefile distinfo 
  Log:
  - update to 2.1.2
  Bugfix 421 Data timeout
  PR:             134422
  
  Revision  Changes    Path
  1.36      +1 -1      ports/ftp/vsftpd/Makefile
  1.19      +3 -3      ports/ftp/vsftpd/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Dirk Meyer freebsd_committer freebsd_triage 2009-05-30 21:36:22 UTC
State Changed
From-To: analyzed->patched

Please test the new version 2.1.2
Comment 7 Andreas Schwarz 2009-06-04 02:00:27 UTC
I made a test with a 1 GB sized testfile, no timeouts anymore. In the changelog 
of vsftp 2.1.1 the fix is described.

 - Fix NASTY regression whereby data transfer timeouts would fire incorrectly under SSL transfers. In addition, the transfer rate caps were not working under SSL transfers. Reported by several people.
Comment 8 Dirk Meyer freebsd_committer freebsd_triage 2009-06-04 19:57:10 UTC
State Changed
From-To: patched->closed

Problem fixed with update, thanks.