protocol failure in circuit setup

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
# 1  
protocol failure in circuit setup

Receiving the above error from an application. I narrowed it down to a problem with rsh. If the rsh command is issued too rapidly it fails intermittently.

Try this script on your linux box...

#!/bin/sh -f
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
echo $i
rsh `hostname` "echo $i" &

If you don't get the error right away, try running the script a few times in close succession.

I think the problem is with the /etc/xinetd.conf settings. Anyone know what flag or setting we have to tweek to avoid this problem?

Here's part of the output....
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup

Last edited by kevinl33; 04-14-2009 at 09:38 PM..
# 2  
inetd does rate-limiting. By default it stops at 40 connections per minute and then "punishes" you with 10 minutes of not listening anymore.

In /etc/inetd.conf, try this:

shell stream tcp nowait.1000 root /usr/sbin/tcpd in.rshd -L

Instead of this:

shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L

For xinetd, there are more options (and more explicit):


Limits the rate of incoming connections. Takes two arguments. The first argument is the number of connections per second to handle. If the rate of incoming connections is higher than this, the service will be temporarily disabled. The second argument is the number of seconds to wait before re-enabling the service after it has been disabled. The default for this setting is 50 incoming connections and the interval is 10 seconds.

Takes a floating point value as the load at which the service will stop accepting connections. For example: 2 or 2.5. The service will stop accepting connections at this load. This is the one minute load average. This is an OS dependent feature, and currently only Linux, Solaris, and FreeBSD are supported for this. This feature is only avaliable if xinetd was configured with the -with-load-avg option.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #614
Difficulty: Medium
In Python, strings in double quotes work exactly the same way as strings in single quotes.
True or False?

6 More Discussions You Might Find Interesting

1. Answers to Frequently Asked Questions

Running Turbo-cad and circuit wizard programmes.

Hi. i am new to Linux. i have a Turbo-cad and circuit wizard programme on CD that I want to install and run. I keep getting the message I do not have an auto-run programme. Do I need to install specific drivers for this? What programme do I need? (1 Reply)
Discussion started by: Alfred Kruger
1 Replies

2. UNIX and Linux Applications

UNIX Circuit Design System

Hi all. In some articles I have read about a "UNIX Circuit Design System", which was written originally in some version of Research UNIX by Sandy Fraser. Here is a quote from the article "A Research UNIX Reader: Annotated Excerpts from the Programmer's Manual", by Douglas McIlroy: Even... (1 Reply)
Discussion started by: mghis
1 Replies

3. Shell Programming and Scripting

Short circuit if

Hello everyone, just wondering if this type of if condition will execute properly. Suppose I have a script with two functions in it called abc and def: is this code valid, or is there a better way to short circuit the if statement? #! /bin/ksh93 abc(){ statement 1 using $1 statement 2... (4 Replies)
Discussion started by: gio001
4 Replies

4. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

5. Homework & Coursework Questions

USB Circuit Question

My problem is I need to control a 7 segment LED circuit (currently on a breadboard, eventually on a PCB). The only option I have from my PC is through USB. The circuit I have built on a breadboard uses 7 segment LED's and 4206 decade counters. I have cut a USB cable in half, and am using the... (2 Replies)
Discussion started by: bkhusky
2 Replies

6. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

Featured Tech Videos