switch (tag) {
case POST_EVENT_TYPE_HANDLE_RESPONSE:
return handleResponse(data);
case POST_EVENT_TYPE_CLOSE_SOCKET:
try {
NginxClojureSocketImpl s = (NginxClojureSocketImpl) POSTED_EVENTS_DATA.remove(data);
s.closeByPostEvent();
return NGX_OK;
}catch (Throwable e) {
log.error("handle post close event error", e);
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}