Add iscsi_tcp_set_user_timeout function
This patch adds a user configurable option to set the TCP_USER_TIMEOUT socket option. With this timeout set a broken TCP session is shutdown after a given timeout even there are unacked packets. SO_KEEPALIVE seems not to work in this case.
This commit is contained in:
@@ -229,6 +229,8 @@ try_again:
|
||||
iscsi->portal = strdup(old_iscsi->portal);
|
||||
|
||||
iscsi->debug = old_iscsi->debug;
|
||||
|
||||
iscsi->tcp_user_timeout = old_iscsi->tcp_user_timeout;
|
||||
|
||||
if (iscsi_full_connect_sync(iscsi, iscsi->portal, iscsi->lun) != 0) {
|
||||
iscsi_destroy_context(iscsi);
|
||||
|
||||
Reference in New Issue
Block a user