diff options
author | Hannes Reinecke <hare@suse.de> | 2016-11-22 15:08:34 -0800 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2016-11-23 11:55:51 -0800 |
commit | 2b099d7b7e04bc42f747e75e87b053d564ee76bd (patch) | |
tree | dd5e19446dbefeeb2f9239032ab069bb04e190e2 /usr/config.h | |
parent | ca0e8eb4ddf3725e2719ef25ab4aca84248bfa9e (diff) | |
download | open-iscsi-2b099d7b7e04bc42f747e75e87b053d564ee76bd.tar.gz |
Use timeout when waiting for responses from iscsid
The server might already been terminated when iscsiadm tries to
send a request to it, hence we might be waiting forever for a reply.
With this patchset we're waiting at most one minute before giving up,
avoiding a hang in iscsiadm.
Changes since v2:
* rework readability in new poll() code
Changes since v1:
* Break out of poll() loop on error
* Initialize discovery timeout
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Lee Duncan <lduncan@suse.com>
Diffstat (limited to 'usr/config.h')
-rw-r--r-- | usr/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/config.h b/usr/config.h index fd31a54..5b1bb1d 100644 --- a/usr/config.h +++ b/usr/config.h @@ -315,6 +315,7 @@ typedef struct discovery_rec { discovery_type_e type; char address[NI_MAXHOST]; int port; + int iscsid_req_tmo; union { struct iscsi_sendtargets_config sendtargets; struct iscsi_slp_config slp; |