[tbb-bugs] #25773 [Applications/Tor Browser]: Disable Speculative Connect and Download

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Apr 11 03:07:22 UTC 2018


#25773: Disable Speculative Connect and Download
--------------------------------------+--------------------------
 Reporter:  sysrqb                    |          Owner:  tbb-team
     Type:  defect                    |         Status:  new
 Priority:  Medium                    |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:                            |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by sysrqb):

 For some context:

 {{{
 2018-04-11 02:11:26.262762 UTC - [Main Thread]: V/nsHttp
 nsHttpConnectionMgr::SpeculativeConnect [ci=.S.P...www.torproject.org:443
 (socks:127.0.0.1:9150)[--unknown--:<E3>3'<D4>?^M<BD>L^Y[ET^T'֯5^Y<F0>M^G(<B2>sI
 <9D><C1><EA><CA>4]^privateBrowsingId=1]
 2018-04-11 02:11:26.262841 UTC - [Main Thread]: D/nsHttp
 NulHttpTransaction::NullHttpTransaction() mActivityDistributor is active
 [this=7c2ddc744880, www.torproject.org]
 2018-04-11 02:11:26.263023 UTC - [Socket Thread]: V/nsHttp
 nsHttpConnectionMgr::OnMsgSpeculativeConnect
 [ci=.S.P...www.torproject.org:443
 (socks:127.0.0.1:9150)[--unknown--:<E3>3'<D4>?^M<BD>L^Y[ET^T'֯5^Y<F0>M^G(
 <B2>sI<9D><C1><EA><CA>4]^privateBrowsingId=1]
 2018-04-11 02:11:26.263036 UTC - [Socket Thread]: V/nsHttp Init
 nsHttpConnectionInfo @7c2ddb5bf2c0
 2018-04-11 02:11:26.263088 UTC - [Socket Thread]: V/nsHttp
 nsHttpConnectionMgr::AtActiveConnectionLimit
 [ci=.S.P...www.torproject.org:443
 (socks:127.0.0.1:9150)[--unknown--:<E3>3'<D4>?^M<BD>L^Y[ET^T'֯5^Y<F0>M^G(
 <B2>sI<9D><C1><EA><CA>4]^privateBrowsingId=1 caps=401]
 2018-04-11 02:11:26.263120 UTC - [Socket Thread]: V/nsHttp Creating
 nsHalfOpenSocket [this=7c2ddcb5bb60 trans=7c2ddc744880
 ent=www.torproject.org key=.S.P...www.torproject.org:443
 (socks:127.0.0.1:9150)[--unknown--:<E3>3'<D4>?^M<BD>L^Y[ET^T'֯5^Y<F0>M^G(<B2>sI<9D><C1><EA><CA>4]^privateBrowsingId=1]
 2018-04-11 02:11:26.263138 UTC - [Socket Thread]: V/nsHttp
 nsHalfOpenSocket::SetupStreams [this=7c2ddcb5bb60
 ent=.S.P...www.torproject.org:443
 (socks:127.0.0.1:9150)[--unknown--:<E3>3'<D4>?^M<BD>L^Y[ET^T'֯5^Y
 <F0>M^G(<B2>sI<9D><C1><EA><CA>4]^privateBrowsingId=1] setup routed
 transport to origin www.torproject.org:443 via :443
 2018-04-11 02:11:26.263150 UTC - [Socket Thread]: D/nsSocketTransport
 creating nsSocketTransport @7c2ddd26c000
 2018-04-11 02:11:26.263162 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::Init [this=7c2ddd26c000 host=www.torproject.org:443
 origin=www.torproject.org:443 proxy=127.0.0.1:9150]
 2018-04-11 02:11:26.263184 UTC - [Socket Thread]: D/nsSocketTransport
 Reset callbacks for secinfo=0 callbacks=7c2df4593dc0
 2018-04-11 02:11:26.263196 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::OpenOutputStream [this=7c2ddd26c000 flags=2]
 2018-04-11 02:11:26.263206 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::PostEvent [this=7c2ddd26c000 type=0 status=0 param=0]
 2018-04-11 02:11:26.263219 UTC - [Socket Thread]: D/nsSocketTransport STS
 dispatch [7c2df4593ee0]
 2018-04-11 02:11:26.263236 UTC - [Socket Thread]: D/nsSocketTransport
 OnDispatchedEvent Same Thread Skip Signal
 2018-04-11 02:11:26.263246 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::OpenInputStream [this=7c2ddd26c000 flags=2]
 2018-04-11 02:11:26.263252 UTC - [Main Thread]: D/nsHttp
 nsHttpChannel::OnCacheEntryAvailable [this=7c2ddc0c1800 entry=7c2ddc60aaa0
 new=1 appcache=0 status=0 mAppCache=0 mAppCacheForWrite=0]
 2018-04-11 02:11:26.263256 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::PostEvent [this=7c2ddd26c000 type=0 status=0 param=0]
 2018-04-11 02:11:26.263311 UTC - [Socket Thread]: D/nsSocketTransport STS
 dispatch [7c2df4593f70]
 2018-04-11 02:11:26.263291 UTC - [Main Thread]: D/nsHttp
 nsHttpChannel::SetupTransaction [this=7c2ddc0c1800]
 2018-04-11 02:11:26.263325 UTC - [Socket Thread]: D/nsSocketTransport
 OnDispatchedEvent Same Thread Skip Signal
 2018-04-11 02:11:26.263360 UTC - [Main Thread]: D/nsHttp Creating
 nsHttpTransaction @7c2ddd26c400
 2018-04-11 02:11:26.263397 UTC - [Main Thread]: D/nsHttp nsHttpChannel
 7c2ddc0c1800 created nsHttpTransaction 7c2ddd26c400
 2018-04-11 02:11:26.263377 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketOutputStream::AsyncWait [this=7c2ddd26c288]
 2018-04-11 02:11:26.263563 UTC - [Socket Thread]: D/nsSocketTransport
 OnDispatchedEvent Same Thread Skip Signal
 2018-04-11 02:11:26.263577 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::OnSocketEvent [this=7c2ddd26c000 type=0 status=0
 param=0]
 2018-04-11 02:11:26.263586 UTC - [Socket Thread]: D/nsSocketTransport
 MSG_ENSURE_CONNECT
 2018-04-11 02:11:26.263636 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::ResolveHost [this=7c2ddd26c000 www.torproject.org:443]
 2018-04-11 02:11:26.263647 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::PostEvent [this=7c2ddd26c000 type=1 status=0 param=0]
 2018-04-11 02:11:26.263658 UTC - [Socket Thread]: D/nsSocketTransport STS
 dispatch [7c2df4593d90]
 2018-04-11 02:11:26.263668 UTC - [Socket Thread]: D/nsSocketTransport
 OnDispatchedEvent Same Thread Skip Signal
 2018-04-11 02:11:26.263685 UTC - [Socket Thread]: D/nsSocketTransport
 nsSocketTransport::OnSocketEvent [this=7c2ddd26c000 type=0 status=0
 param=0]
 2018-04-11 02:11:26.263694 UTC - [Socket Thread]: D/nsSocketTransport
 MSG_ENSURE_CONNECT
 2018-04-11 02:11:26.263713 UTC - [Socket Thread]: D/nsSocketTransport
 ignoring redundant event
 2018-04-11 02:11:26.263695 UTC - [Main Thread]: D/nsHttp
 nsHttpTransaction::Init [this=7c2ddd26c400 caps=b]
 2018-04-11 02:11:26.263744 UTC - [Main Thread]: D/nsHttp
 nsHttpTransaction::Init() mActivityDistributor is active this=7c2ddd26c400
 2018-04-11 02:11:26.263727 UTC - [Socket Thread]: D/nsSocketTransport STS
 poll iter
 2018-04-11 02:11:26.263776 UTC - [Socket Thread]: D/nsSocketTransport
 active [2] { handler=7c2dfb170000 condition=0 pollflags=5 }
 2018-04-11 02:11:26.263784 UTC - [Main Thread]: I/nsHttp http request [
 2018-04-11 02:11:26.263801 UTC - [Main Thread]: I/nsHttp   GET
 /dist/torbrowser/7.5.3/torbrowser-install-7.5.3_en-US.exe HTTP/1.1
 2018-04-11 02:11:26.263819 UTC - [Main Thread]: I/nsHttp   Host:
 www.torproject.org
 2018-04-11 02:11:26.263834 UTC - [Main Thread]: I/nsHttp   User-Agent:
 Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
 2018-04-11 02:11:26.263849 UTC - [Main Thread]: I/nsHttp   Accept:
 text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 2018-04-11 02:11:26.263863 UTC - [Main Thread]: I/nsHttp   Accept-
 Language: en-US,en;q=0.5
 2018-04-11 02:11:26.263878 UTC - [Main Thread]: I/nsHttp   Accept-
 Encoding: gzip, deflate, br
 2018-04-11 02:11:26.263893 UTC - [Main Thread]: I/nsHttp   Referer:
 https://www.torproject.org/download/download-easy.html.en
 2018-04-11 02:11:26.263907 UTC - [Main Thread]: I/nsHttp   Connection:
 keep-alive
 2018-04-11 02:11:26.263921 UTC - [Main Thread]: I/nsHttp   Pragma: no-
 cache
 2018-04-11 02:11:26.263936 UTC - [Main Thread]: I/nsHttp   Cache-Control:
 no-cache
 2018-04-11 02:11:26.263949 UTC - [Main Thread]: I/nsHttp ]

 }}}

 `netwerk/protocol/http/nsHttpChannel.cpp` and
 `netwerk/protocol/http/nsHttpConnectionMgr.cpp` are interesting here.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25773#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tbb-bugs mailing list