mhttpd multithread crash

Issue #293 resolved
dd1 created an issue

There is a bug in the new mhttpd multithreading code. It does not happen often, but it causes mhttpd to send http esponses to the wrong socket. This is difficult to debug. To protect against this, I have an extra check for correct socket number and this check appears to be working. With luck I have a core dump and find the root cuase of this problem.

Indication that others see this problem is these messages in midas.log followed by a crash of mhttpd.

22:01:39.449 2020/10/19 [mhttpd,ERROR] [mhttpd.cxx:18873:on_work_complete,ERROR] Should not send response to request from socket 27 to socket 22, abort!

K.O.

Comments (2)

  1. Log in to comment