public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls
@ 2007-11-21  3:29 pasky at suse dot cz
  2007-11-21  3:29 ` [Bug libc/5379] " pasky at suse dot cz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pasky at suse dot cz @ 2007-11-21  3:29 UTC (permalink / raw)
  To: glibc-bugs

clntudp_call() does not properly implement re-poll()ing in case the poll() has
been interrupted.

-- 
           Summary: sunrpc: Fix hangs in UDP RPC calls
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


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

------- 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] 6+ messages in thread

* [Bug libc/5379] sunrpc: Fix hangs in UDP RPC calls
  2007-11-21  3:29 [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls pasky at suse dot cz
@ 2007-11-21  3:29 ` pasky at suse dot cz
  2007-11-23  1:32 ` drepper at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pasky at suse dot cz @ 2007-11-21  3:29 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2007-11-21 03:29 -------
Created an attachment (id=2102)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2102&action=view)
Proposed patch


-- 


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

------- 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] 6+ messages in thread

* [Bug libc/5379] sunrpc: Fix hangs in UDP RPC calls
  2007-11-21  3:29 [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls pasky at suse dot cz
  2007-11-21  3:29 ` [Bug libc/5379] " pasky at suse dot cz
@ 2007-11-23  1:32 ` drepper at redhat dot com
  2008-10-11  2:46 ` mikeh at fesnel dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2007-11-23  1:32 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-11-23 01:32 -------
The patch is not correct.  It goes to the extreme other side.  Now a few signals
sent in short succession can cause the total timeout time to be far too short.

To fix this it will be necessary to measure how long the poll calls slept and
adjust the total time to this.

-- 


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

------- 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] 6+ messages in thread

* [Bug libc/5379] sunrpc: Fix hangs in UDP RPC calls
  2007-11-21  3:29 [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls pasky at suse dot cz
  2007-11-21  3:29 ` [Bug libc/5379] " pasky at suse dot cz
  2007-11-23  1:32 ` drepper at redhat dot com
@ 2008-10-11  2:46 ` mikeh at fesnel dot com
  2008-10-11  2:47 ` mikeh at fesnel dot com
  2008-10-11  2:48 ` mikeh at fesnel dot com
  4 siblings, 0 replies; 6+ messages in thread
From: mikeh at fesnel dot com @ 2008-10-11  2:46 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mikeh at fesnel dot com  2008-10-10 19:19 -------
Created an attachment (id=2993)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2993&action=view)
Proposed patch

Here's a different patch for the same bug. This deducts time spent in poll(2)
for each EINTR and reduces the timeout for the subsequent calls to poll(2).
Warning: This patch should compile but I don't have the ability to test it.

Caveats: No way to distinguish the time spent in the signal handler that
interrupted poll(2) from time actually spent polling.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #2102 is|0                           |1
           obsolete|                            |


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

------- 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] 6+ messages in thread

* [Bug libc/5379] sunrpc: Fix hangs in UDP RPC calls
  2007-11-21  3:29 [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls pasky at suse dot cz
                   ` (2 preceding siblings ...)
  2008-10-11  2:46 ` mikeh at fesnel dot com
@ 2008-10-11  2:47 ` mikeh at fesnel dot com
  2008-10-11  2:48 ` mikeh at fesnel dot com
  4 siblings, 0 replies; 6+ messages in thread
From: mikeh at fesnel dot com @ 2008-10-11  2:47 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikeh at fesnel dot com


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

------- 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] 6+ messages in thread

* [Bug libc/5379] sunrpc: Fix hangs in UDP RPC calls
  2007-11-21  3:29 [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls pasky at suse dot cz
                   ` (3 preceding siblings ...)
  2008-10-11  2:47 ` mikeh at fesnel dot com
@ 2008-10-11  2:48 ` mikeh at fesnel dot com
  4 siblings, 0 replies; 6+ messages in thread
From: mikeh at fesnel dot com @ 2008-10-11  2:48 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mikeh at fesnel dot com  2008-10-10 20:29 -------
Created an attachment (id=2994)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2994&action=view)
Proposed patch

Updated patch to use larger integer type to store milliseconds.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #2993 is|0                           |1
           obsolete|                            |


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

------- 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] 6+ messages in thread

end of thread, other threads:[~2008-10-11  2:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21  3:29 [Bug libc/5379] New: sunrpc: Fix hangs in UDP RPC calls pasky at suse dot cz
2007-11-21  3:29 ` [Bug libc/5379] " pasky at suse dot cz
2007-11-23  1:32 ` drepper at redhat dot com
2008-10-11  2:46 ` mikeh at fesnel dot com
2008-10-11  2:47 ` mikeh at fesnel dot com
2008-10-11  2:48 ` mikeh at fesnel 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).