agent/wpthook/requests.cc
/*-----------------------------------------------------------------------------
   Find an existing request, or create a new one if appropriate.
 -----------------------------------------------------------------------------*/
Find an existing request, or create a new one if appropriate.
Find an existing request or create a new one if appropriate .
Request * Requests::GetOrCreateRequest(DWORD socket_id,
                                       const DataChunk& chunk) {
  Request * request = NULL;
  if (_active_requests.Lookup(socket_id, request) && request) {
    if (!request->_is_spdy && request->_response_data.GetDataSize() &&
        IsHttpRequest(chunk)) {
      request = NewRequest(socket_id, false);
    }
  } else {
    bool is_spdy = IsSpdyRequest(chunk);
    if (is_spdy || IsHttpRequest(chunk)) {
      request = NewRequest(socket_id, is_spdy);
    }
  }
  return request;
}
Request * Requests :: GetOrCreateRequest ( DWORD socket_id , const DataChunk & chunk ) { Request * request = NULL ; if ( _active_requests . Lookup ( socket_id , request ) && request ) { if ( ! request -> _is_spdy && request -> _response_data . GetDataSize ( ) && IsHttpRequest ( chunk ) ) { request = NewRequest ( socket_id , false ) ; } } else { bool is_spdy = IsSpdyRequest ( chunk ) ; if ( is_spdy || IsHttpRequest ( chunk ) ) { request = NewRequest ( socket_id , is_spdy ) ; } } return request ; }
Find an existing request, or create a new one if appropriate.
Find an existing request or create a new one if appropriate .
// We have an existing request on this socket, however, if data has been
 // received already, then this may be a new request.
