Revert "CONNECT only read/write from sockets when connection is established"
Fixed the login process in qemu-kvm. This makes this fix obsolete.
This reverts commit a9257d52a7.
This commit is contained in:
committed by
Ronnie Sahlberg
parent
00baa9bd6c
commit
f9dc2da672
@@ -552,12 +552,12 @@ iscsi_service(struct iscsi_context *iscsi, int revents)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (iscsi->is_connected && revents & POLLOUT && iscsi->outqueue != NULL) {
|
||||
if (revents & POLLOUT && iscsi->outqueue != NULL) {
|
||||
if (iscsi_write_to_socket(iscsi) != 0) {
|
||||
return iscsi_service_reconnect_if_loggedin(iscsi);
|
||||
}
|
||||
}
|
||||
if (iscsi->is_connected && revents & POLLIN) {
|
||||
if (revents & POLLIN) {
|
||||
if (iscsi_read_from_socket(iscsi) != 0) {
|
||||
return iscsi_service_reconnect_if_loggedin(iscsi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user