reconnect: avoid deadlock if socker error is received during reconnect
If we are reconnecting and the connection is already established we end up looping forever if there is a socket error before we finish the login process. Fix this by invoking the reconnect callback if there is an error and no new reconnect is scheduled. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -367,6 +367,9 @@ uint32_t iscsi_itt_post_increment(struct iscsi_context *iscsi);
|
||||
|
||||
void iscsi_timeout_scan(struct iscsi_context *iscsi);
|
||||
|
||||
void iscsi_reconnect_cb(struct iscsi_context *iscsi _U_, int status,
|
||||
void *command_data, void *private_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user