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:
Yan Burman
2014-02-11 08:55:54 +00:00
parent 3d3f5250ce
commit 2b778b99ff

View File

@@ -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;