Hi, i am trying to implement a kind of long-polling xhr requests, but having trouble identifying the case when connection was closed by the client.

HTTPServerRequest.m_conn seems to be private;
HTTPServerResponse.waitForConnectionClose() cannot simply return the state without waiting, with duration equal to zero, it waits unconditionally.

What other options do i have?