From 190c1effc5eaa2b7e6bdef302bbca2a58e5015c2 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 27 Jul 2020 12:10:55 +0000 Subject: [PATCH] added a debug message --- mio/lib/http-thr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mio/lib/http-thr.c b/mio/lib/http-thr.c index 4a507bc..9c03980 100644 --- a/mio/lib/http-thr.c +++ b/mio/lib/http-thr.c @@ -879,7 +879,11 @@ int mio_svc_htts_dothr (mio_svc_htts_t* htts, mio_dev_sck_t* csck, mio_htre_t* r MIO_SVC_HTTS_RSRC_ATTACH (thr_state, cli->rsrc); thr_state->peer = mio_dev_thr_make(mio, MIO_SIZEOF(*thr_peer), &mi); - if (MIO_UNLIKELY(!thr_state->peer)) { printf ("dev thr make failure. \n"); goto oops; } + if (MIO_UNLIKELY(!thr_state->peer)) + { + MIO_DEBUG3 (mio, "HTTS(%p) - failed to create thread for %p(%d)\n", htts, csck, (int)csck->hnd); + goto oops; + } tfs = MIO_NULL; /* mark that tfs is delegated to the thread */