public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1936] New: Improvement to rcmd
@ 2005-11-28 10:58 jw203198 at hotmail dot com
  2005-11-28 11:00 ` [Bug libc/1936] " jw203198 at hotmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jw203198 at hotmail dot com @ 2005-11-28 10:58 UTC (permalink / raw)
  To: glibc-bugs

The existing code in libc which implements rcmd isn't very robust when it comes
to executing multiple rcmd's in fairly rapid sequence.  That is because rcmd
attempts to bind to the same port number every time (ie it tries all port
numbers in same order every time). This can cause high delays, and errors, if
the port number is in use.

My patch slightly randomizes the starting port number in a possibly reasonable
fashion using process id. It works, and improves reliability of rcmd.

I am sick of recompiling glibc every new release just to change a couple of
lines of code, so maybe you might incorporate this change.

-- 
           Summary: Improvement to rcmd
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: jw203198 at hotmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=1936

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/1936] Improvement to rcmd
  2005-11-28 10:58 [Bug libc/1936] New: Improvement to rcmd jw203198 at hotmail dot com
@ 2005-11-28 11:00 ` jw203198 at hotmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jw203198 at hotmail dot com @ 2005-11-28 11:00 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jw203198 at hotmail dot com  2005-11-28 11:00 -------
Created an attachment (id=768)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=768&action=view)
Patch to randomize initial rcmd port by process id.

Please ignore the waffling comments in the patch. Just me thinking with my two
typing fingers.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1936

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-28 11:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-28 10:58 [Bug libc/1936] New: Improvement to rcmd jw203198 at hotmail dot com
2005-11-28 11:00 ` [Bug libc/1936] " jw203198 at hotmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).