This is a discussion on Re: too many close calls for non-opened fds within the OpenSSH Development forums, part of the Networking and Network Related category; Chris Rapier wrote: > > Rick Jones wrote: > >>>Actually that was a mistake on my part. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Chris Rapier wrote:
> > Rick Jones wrote: > >>>Actually that was a mistake on my part. When -r option is used the close >>>call occurs only during startup and not for every connection. During startup >>>with -r option we get around 60K close calls. >>>We are about to do a fix for this issue on HP-UX (without -r option). The >>>approach is to find out the open fds and close the unwanted ones. Will this >>>be a valid approach. >> >>I would think that the overhead of determining if an FD is open wouldn't >>be that far off from closing it. > > > One question: I'm assuming its cheaper (or at least was at one time) to > just close a whole bunch of FDs rather than track what FDs are being > opened as they are being opened? most likely - at least when we are talking about crossing an exec boundary. rick jones _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@mindrot.org http://lists.mindrot.org/mailman/lis...enssh-unix-dev |