diff options
author | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-10-01 13:43:47 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-10-01 14:05:59 -0400 |
commit | 0af66a9ab0177f0ea72c6084f6e5bfc587140563 (patch) | |
tree | fc0015fb825942faceb2c73cc3208f4eb6f175b5 /src/portmap.h | |
parent | 1b2c663812cb69610aac073fe2cd786dcc8f5d5c (diff) | |
download | slapi-nis-0af66a9ab0177f0ea72c6084f6e5bfc587140563.tar.gz slapi-nis-0af66a9ab0177f0ea72c6084f6e5bfc587140563.tar.xz slapi-nis-0af66a9ab0177f0ea72c6084f6e5bfc587140563.zip |
Try reconnecting if rpcbind EPIPEs us
If the NIS server encounters an EPIPE while attempting to communicate
with the portmapper, try to reconnect before giving up on registering.
Depending on which RPC implementation is used, rpcbind may drop idle
clients after 30 seconds, and our startup can take longer than that.
Diffstat (limited to 'src/portmap.h')
-rw-r--r-- | src/portmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portmap.h b/src/portmap.h index 7cbb56c..0f302fc 100644 --- a/src/portmap.h +++ b/src/portmap.h @@ -22,10 +22,10 @@ #ifndef portmap_h #define portmap_h -bool_t portmap_register(const char *log_id, int resv_sock, +bool_t portmap_register(const char *log_id, int *resv_sock, int but_not, int program, int version, int family, int protocol, int port); -bool_t portmap_unregister(const char *log_id, int resv_sock, +bool_t portmap_unregister(const char *log_id, int *resv_sock, int but_not, int program, int version, int family, int protocol, int port); int portmap_create_client_socket(char *module, int but_not); |