query about clnt_create
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
I noticed that clnt_create takes 3.5 min for tcp and 1 min for udp protocol by default
(when taget system in UNREACHABLE). Anyway to modify default timeout ? I could see that there are functions like clnt_create_timed on solaris 5.8/5.9 but not on linux.
thanks,
kiran
--- Trond Myklebust <[email protected]>
Quoted 12 lines · wrote:
Quoted 5 lines · mehta kiran
Hi Trond,
=20
May be i am confused.
But, is this assumption ok :
that clnt_create/clnt_call call from a clientsystem
Quoted 4 lines
will not fail due to any kind of security
settings(kerberos,firewall)on the nfs server
( PS: client system can mount exported fs from
nfs server) ?
Quoted 15 lines
=20
Of courseclnt_callcan fail due to security settings on the server:
they wouldn't be much use for security purposes if they didn't stop an
actual RPC call. :-)
=20clnt_createmight succeed, though, since it doesn't actually try to talk
to the server.
=20
Cheers,
Trond
=20
=20
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les
for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 6 lines · mehta kiran
I noticed that
clnt_createtakes 3.5 min for tcp and 1 min for udp protocol by default
(when taget system in UNREACHABLE). Anyway to modify default timeout ? I could see that there are functions likeclnt_create_timedon solaris 5.8/5.9 but not on linux.
'man 3 rpc' and look for the clnt_control() function
Cheers
Trond
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi Trond,
perhaps i was not clear.
I am talking about timeout for clnt_create and not about clnt_call which already has client handle in place. clnt_control will act on=20 client handle and i am searching for something which
will create client handle within specified timeout=20 if possible.
thanks,
kiran
--- Trond Myklebust <[email protected]>
Quoted 9 lines · wrote:
Quoted 3 lines · mehta kiran
I noticed that
clnt_createtakes 3.5 min for tcp and 1 min for udp protocol by default (when taget system in UNREACHABLE). Anyway tomodify
Quoted 2 lines
default timeout ? I could see that there are functions like
clnt_create_timedon solaris5.8/5.9
Quoted 8 lines
Quoted 1 line
but not on linux.
=20
'man 3 rpc' and look for theclnt_control()function =20
Cheers
Trond
=20
=20
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les
for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 9 lines · mehta kiran
Hi Trond,
perhaps i was not clear.
I am talking about timeout forclnt_createand not aboutclnt_callwhich already has client handle in place.clnt_controlwill act on client handle and i am searching for something whichwill create client handle within specified timeout if possible.
AFAICS clnt_create() will only do RPC calls if you fail to specify the port number to connect to, in which case it needs to call pmap_getport.
The portmapper timeout values appear to be hardcoded into the glibc rpc code, but writing your own client for PMAP_GETPORT should be trivial.
Cheers
Trond
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs