From 2b778b99fff58b04c623bf4f406c40224c511f32 Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Tue, 11 Feb 2014 08:55:54 +0000 Subject: [PATCH] isert: iscsi-scstd: Take into account con_blocking parameter when accepting iSER connection the same as in TCP code Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5280 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/iscsi_scstd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iscsi-scst/usr/iscsi_scstd.c b/iscsi-scst/usr/iscsi_scstd.c index 2b27dbe21..3ad8d5d79 100644 --- a/iscsi-scst/usr/iscsi_scstd.c +++ b/iscsi-scst/usr/iscsi_scstd.c @@ -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;