Files
libiscsi/lib
Tianren Zhang 97ba4c34e2 lib: reserve the fd on reconnect
On reconnect case, the iscsi_tcp_connect tries to reuse
the fd number of old_iscsi. However, this fd could have been
already closed in previous iscsi_tcp_disconnect if
iscsi->fd == iscsi->old_iscsi->fd and the fd number
might have been allocated to some other caller, in this
case the fd reuse in iscsi_tcp_connect is not safe anymore.

Solve this by not closing the fd if iscsi and old_iscsi
share the same fd on reconnect to "really" reserve this
fd number.

Signed-off-by: Tianren Zhang <tianren@smartx.com>
2024-11-22 06:16:59 +00:00
..
2024-05-04 19:34:06 -07:00
2020-02-28 21:54:49 -08:00
2024-05-04 19:34:06 -07:00
2024-05-04 19:34:06 -07:00
2024-04-09 16:06:35 +02:00
2024-11-10 03:19:37 +00:00
2024-11-22 06:16:59 +00:00