Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rshd running out of privileged ports



Hello all,

We have a build environment based upon Microsoft VC++ which rsh's the build
commands to the Mac. If the compile-file rate is too high, we start getting
rshd errors. When rsh'ing rapidly, rshd on the Mac seems to be running out
of privileged ports to open stderr upon. The following script was created
to show and reproduce the errors. It has been run from various Unix
machines and a similar script has been run from a Window machine all with
the same errors occurring:

#!/bin/sh
loop=0
while [ $loop -lt 1000 ]; do
echo $loop;
rsh mackie sleep 0;
loop=$(( $loop + 1 ));
done

Each rsh only does a sleep. After 42 runs, the rshd errors with:
"can't get stderr port: Can't assign requested address"

This goes on for a while and then clears itself up after ~50 seconds. Then
the whole cycle starts over again.

I have enabled rshd through "xinetd.d/shell". I have tried to set various
kernel parameters and nothing seems to affect the outcome. It seems to have
lingering sockets, or something similar. I have taken the Darwin source for
rshd.c and modified it to try to resolve this problem with no luck. Our
environment is:

Power Mac G4 1.25GHz
512MB
OS X 10.3


Anyone have any ideas?

Thanks in advance,
Mark





Mark E. Armstrong
Avail Solutions
2430 Vineyard Ave.
Suite 205
Escondido, CA 92029 USA

Email: email@hidden
Internet: http://www.availsoutions.com
Tele: (760) 743-7200 x101
Fax: (760) 743-7299

NOTICE OF CONFIDENTIALITY:
This e-mail and any attachments are confidential and the information
contained herein is the property of Avail Solutions. If you are not the
intended recipient(s) of this e-mail, or the employee or agent responsible
to deliver it to the intended recipient(s), you are hereby notified that any
dissemination, distribution, copying, use of or reliance upon the
information contained within this e-mail or attachments is unauthorized and
strictly prohibited. If you have received this e-mail in error, please
notify us immediately by returning it to the sender and delete this copy
from your system.

[demime 0.98b removed an attachment of type image/gif which had a name of image002.gif]
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.