Hi
We cloned a copy of HttpNetworkTransaction (MyHttpNetworkTransaction ) in order to use it to tunnel RTMP/RTMPS requests, by re-using
the HttpBasicStream object stream_ that's already setup and initialised. We added a StreamSocket member to
MyHttpNetworkTransaction and initialised it like this in DoInitRequestBody() method (see below).
But after called Start() to start the async request, I'm getting back a -105 DNS error ( NAME_NOT_RESOLVED ).
We used this in 58.x and it was ok. 79.x is generating this error code. Are there any dns / resolver methods / objects I need
to setup or initialise. This code is running in the Network Process in NetworkContext object (where I create the MyHttpNetworkTransaction object from HttpNetworkSession and priority) and then call Start(...).
Thanks very much
int MyHttpNetworkTransaction2::DoInitRequestBody() {
// BEGIN MY MODIFICATION
#if 0
next_state_ = STATE_INIT_REQUEST_BODY_COMPLETE;
int rv = OK;
if (request_->upload_data_stream)
rv = request_->upload_data_stream->Init(
base::BindOnce(&MyHttpNetworkTransaction::OnIOComplete,
base::Unretained(this)),
net_log_);
return rv;
#endif
// re-using the HttpBasicStream object stream_ in HttpNetworkTransaction
socket_=((HttpBasicStream *)stream_.get())->state_.connection()->socket();
next_state_=STATE_NONE;
return OK;
// END MY MODIFICATION
}