Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78764 - vsftpd sessions hang on connect due to rfc1413 ident checking set in xinetd conf.
Summary: vsftpd sessions hang on connect due to rfc1413 ident checking set in xinetd c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 20:21 UTC by Ben Kennedy
Modified: 2005-06-07 11:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kennedy 2005-01-19 20:21:04 UTC
vsftpd is set up to be invoked by xinetd.  The settings in /etc/xinetd.d/vsftpd are such that xinetd will attempt to do RFC 1413 (identd) enquiry against the connecting host before passing the connection over to vsftpd.  In some situations this is responsible for a hefty delay in establishing the connection and the ftp attempt appears to initially hang).

Specifically this behaviour is a result of 'USERID' in the following lines of /etc/xinetd.d/vsftpd:

       log_on_success  += DURATION USERID
       log_on_failure  += USERID
 
Removing 'USERID' on these lines solves the problem.


Reproducible: Sometimes
Steps to Reproduce:
1. telnet to port 21 on a host running vsftpd in the stock gentoo deployment (i.e., try to connect by ftp).
Actual Results:  
If the connect is coming from a stealthy host, e.g. a computer behind some kind of NAT device which 
doesn't respond to pings etc., there will be a lengthy delay (dozens and dozens of seconds) before the 
"220 Welcome..." message is returned.

Expected Results:  
There should be no delay in vsftpd getting control of the session.  This can be ensured by removing the 
'USERID' params from the xinetd conf.

vsftpd 1.2.2 from portage.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-06-07 11:40:24 UTC
Fixed in vsftpd-2.0.3