LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-30-2011, 05:40 PM   #1
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 244

Rep: Reputation: 31
xinetd appears broken. Connections send random or butchered data


I am trying to install the bucktooth gopher server on a Windows xp laptop. I have cygwin 1.7 installed, and I recently installed the xinetd and perl packages. I successfully (?) configured bucktooth, but I have had trouble with the connection cutting out partway through (partial directory listings, half-blank pictures, etc.). I used tintin++ to get the connection's data directly, and found that in addition to occasionally missing lines, some lines are duplicated. I then ran the bucktooth server directly (to bypass xinetd), and found that the server was giving consistent, correct output. I then added a test service to xinetd (m4), but after connecting to this test service (through tintin++), xinetd would respond with one line of unexpected data (such as "gf" or a line from a recent bucktooth directory listing) and close the connection. Could this be a broken xinetd?

My xinetd configuration:

/etc/xinetd.conf:
Code:
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.

defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
#	enabled		=
#	disabled	=

# Define general logging characteristics.
	log_type	= FILE /etc/xinetd.log
	log_on_failure	= HOST
	log_on_success	= PID HOST DURATION EXIT

# Define access restriction defaults
#
#	no_access	=
#	only_from	=
#	max_load	= 0
	cps		= 50 10
	instances	= 50
	per_source	= 10

# Address and networking defaults
#
#	bind		=
#	mdns		= yes
	v6only		= no

# setup environmental attributes
#
#	passenv		=
	groups		= yes
	umask		= 002

# Generally, banners are not used. This sets up their global defaults
#
#	banner		=
#	banner_fail	=
#	banner_success	=
}

includedir /etc/xinetd.d
/etc/xinetd.d/buckd
Code:
# This is an empty xinetd service configuration. To add a service to 
# xinetd copy this file to /etc/xinetd.d giving it a name similar to the
# service you are adding. Next change the service name before the curly
# brace to match the name found in /etc/services. Then modify the following
# attributes

service gopher
{
# This is for quick on or off of the service
	disable		= no

# The next attributes are mandatory for all services
	id		= buckd
	type		= UNLISTED
	wait		= no
	socket_type	= stream
	protocol	= tcp

# External services must fill out the following
	user		= owner
	server		= /usr/local/bin/buckd

# External services not listed in /etc/services must fill out the next one
	port		= 70

# Logging options
	log_type	= FILE /home/gopher/xinetd.log
}
/etc/xinetd.d/test:
Code:
# This is an empty xinetd service configuration. To add a service to 
# xinetd copy this file to /etc/xinetd.d giving it a name similar to the
# service you are adding. Next change the service name before the curly
# brace to match the name found in /etc/services. Then modify the following
# attributes

service test
{
# This is for quick on or off of the service
	disable		= no

# The next attributes are mandatory for all services
	id		= test
	type		= UNLISTED
	wait		= no
	socket_type	= stream
	protocol	= tcp

# External services must fill out the following
	user		= owner
	server		= /usr/local/bin/m4-i # shell script that calls "m4 -i"; using "server_args" caused service not to start

# External services not listed in /etc/services must fill out the next one
	port		= 400
}
 
Old 05-31-2011, 03:27 PM   #2
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 244

Original Poster
Rep: Reputation: 31
I just tried using some other clients (such as generic telnet clients) to access bucktooth through xinetd. The problem seems to be associated with some clients, but not others. For example, tintin++ experienced missing and repeated lines, Windows telnet worked fine, and accessing the server through my router had the connection cut off partway through. There seems to be some misunderstanding of the connection protocol. It should be standard TCP/IP. Does this indicate that xinetd is mishandeling the connection? Or is the network stack being garbled by something else?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] firefox manage bookmarks appears broken CollieJim Linux - Software 2 02-12-2011 09:00 PM
DVD writer broken: Lun appears to be stuck writing LBA or LBH=410h? Solution karlatLQ Linux - Newbie 1 10-01-2009 08:29 PM
supermount appears broken Sephnroth Mandriva 3 04-21-2006 01:10 PM
xinetd rejects connections? ninen Linux - Software 2 06-06-2004 11:40 AM
PCI hotplugging appears to be broken in 2.6.1 andrewb758 Linux - Software 5 02-29-2004 05:58 PM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration