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 */