From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461) Description of problem: When I rsh a short script to a remote host repeatedly (more than around 290 times), the following error occurs: poll: protocol failure in circuit setup or rcmd: socket: All ports in use. Once this error comes out, no more rsh jobs can be invoked for a while. Strangely, after some period of time, this situation goes out. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Just repeat "rsh <hostname> ls" or something else that consumes small amount of time 2. 3. Actual Results: An error occurs after around 290 rsh's: poll: protocol failure in circuit setup or rcmd: socket: All ports in use Expected Results: No error occurs. Additional info:
Hmmm.. That sounds as if your box is running out of sockets on one end. Could you verify if your rsh scripts don't take forever to complete? If thats the case, it can easily happen that your user limit for open file descriptors runs out. Try the same thing as root or use the ulimit command to change the maximum number of open filedescriptor. Read ya, Phil
I tried to change the maximum number of open filedescriptor by using limit command, but I got the same error message as before.I think this error is caused by anather cause.
*** Bug 88644 has been marked as a duplicate of this bug. ***
I've seen this bug before (on Red Hat 7.2). It turns out that this xinetd erratum fixes it: https://rhn.redhat.com/errata/RHSA-2003-160.html