• Tatsuhiro Tsujikawa's avatar
    shrpx: Check return value of HttpsUpstream::resume_read() · 4876412f
    Tatsuhiro Tsujikawa authored
    Currently, resume_read() fails if on_read() returns -1 in case that
    evbuffer_add failed, which means, most likely, memory allocation
    failure. ClientHandler is marked "should be closed", but if
    evbuffer_add is failed, write callback will not be invoked and its
    marking is not evaluated. It will eventually be deleted when the
    client is disconnected or backend failure though.
    4876412f
shrpx_https_upstream.cc 22.1 KB