This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/17188] New: sunrpc: RPC timeout parameter is ignored when set with clnt_control on UNIX sockets


https://sourceware.org/bugzilla/show_bug.cgi?id=17188

            Bug ID: 17188
           Summary: sunrpc: RPC timeout parameter is ignored when set with
                    clnt_control on UNIX sockets
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: calderon.thomas at gmail dot com

Created attachment 7717
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7717&action=edit
Set the boolean value to use timeout values set with clnt_control.

Hi,

I would like to report a bug in the SunRPC implementation code.
I noticed that when trying to set a timeout value using the clnt_control
function on a UNIX socket, the timeout is never used.
The code located in clnt_unix.c is almost identical to the TCP version.
When comparing the two versions we notice that the ct->wait_set boolean value
is not set in the UNIX code path (clntunix_control vs clnttcp_control).
Therefore, RPC calls never use the timeval structure contained in ct->wait and
the code fall back on using the default RPC timeout.


I have included a sample patch.


Best regards,

Thomas Calderon.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]