mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 19:51:27 +00:00
isert: iscsi-scstd: Take into account con_blocking parameter when accepting iSER connection the same as in TCP code
Signed-off-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5280 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -319,6 +319,11 @@ static void iser_accept(int fd)
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
if (conn_blocked) {
|
||||
log_warning("Connection refused due to blocking\n");
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
conn = alloc_and_init_conn(conn_fd);
|
||||
if (!conn)
|
||||
goto out_close;
|
||||
|
||||
Reference in New Issue
Block a user