summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* This is roughly a reland of r43908, although I had to rewrite a fair chunk ↵willchan@chromium.org2010-05-1719-127/+182
| | | | | | | | | | since code's changed a lot. I've changed it so as not to flush the host resolver too. I suspect there might have been a bug there. I was unable to reproduce the crash here on network change, so I think either that fixed it or something else changed under the hood. In any case, I want to reland this and see if anyone encounters any problems with it. BUG=40455,40457 Review URL: http://codereview.chromium.org/2114004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47395 0039d316-1c4b-4281-b951-d872f2087c98
* Log the OS error that getaddrinfo() failed with.eroman@chromium.org2010-05-1611-48/+201
| | | | | | | | | - Display it on the about:net-internals page - Collect it in the histogram Net.OSErrorsForGetAddrinfo. Review URL: http://codereview.chromium.org/2134004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47386 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 47342.willchan@chromium.org2010-05-165-9/+104
| | | | | | | | | | | Fixes the merge issue this time. Also fixes a TODO in another change that was blocked on this one. Support SpdySession as a new NetLog source type. Start logging some more SPDY control frames. Original code review: http://codereview.chromium.org/2102003/show BUG=43237 Review URL: http://codereview.chromium.org/2114003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47376 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: Fix an infinite loop in a rare condition.phajdan.jr@chromium.org2010-05-152-13/+15
| | | | | | | | | | | | | After issuing the PASS command, we should never issue earlier commands again. The code was sending USER when it received "503 Bad command sequence" error code. TEST=added to net_unittests BUG=38707 Review URL: http://codereview.chromium.org/2094002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47364 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Add push streams to the NetLog.willchan@chromium.org2010-05-152-1/+28
| | | | | | | | | | For streams that already have delegates, they have their own NetLogs so use those. For streams that don't have delegates, just write out to the session's NetLog. TODO(willchan): Use a different event type once the SpdySession NetLog tracker is landed. Review URL: http://codereview.chromium.org/2101003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47346 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 47342 - Support SpdySession as a new NetLog source type. Start ↵willchan@chromium.org2010-05-155-93/+6
| | | | | | | | | | | | | logging some more SPDY control frames. BUG=43237 Review URL: http://codereview.chromium.org/2102003 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/2118003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47343 0039d316-1c4b-4281-b951-d872f2087c98
* Support SpdySession as a new NetLog source type. Start logging some more ↵willchan@chromium.org2010-05-155-6/+93
| | | | | | | | | | SPDY control frames. BUG=43237 Review URL: http://codereview.chromium.org/2102003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47342 0039d316-1c4b-4281-b951-d872f2087c98
* GYP changes for FreeBSD and OpenBSDpvalchev@google.com2010-05-141-2/+2
| | | | | | Review URL: http://codereview.chromium.org/1480002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47327 0039d316-1c4b-4281-b951-d872f2087c98
* Add the URLRequest's method and load flags to the NetLog.eroman@chromium.org2010-05-146-10/+65
| | | | | | | | BUG=37421 Review URL: http://codereview.chromium.org/2108003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47321 0039d316-1c4b-4281-b951-d872f2087c98
* Add the status line to the NetLogHttpResponseParameter.willchan@chromium.org2010-05-141-0/+1
| | | | | | Review URL: http://codereview.chromium.org/2131001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47287 0039d316-1c4b-4281-b951-d872f2087c98
* Update dynamic annotations and move them to base/third_partytimurrrr@chromium.org2010-05-141-1/+1
| | | | | | Review URL: http://codereview.chromium.org/1992005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47252 0039d316-1c4b-4281-b951-d872f2087c98
* Minor refactor: rename "extra_parameters" --> "params".eroman@chromium.org2010-05-131-6/+4
| | | | | | | | (The "extra" was redundant. And "params" is a well understood abbreviation of "parameters"). Review URL: http://codereview.chromium.org/2110001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47183 0039d316-1c4b-4281-b951-d872f2087c98
* Try to fix a deadlock that happened when running the network diagnostic tool ↵eroman@chromium.org2010-05-131-24/+48
| | | | | | | | | | | | | | tests, by releasing the V8 lock while executing the JS bindings functions. I don't fully understand how the deadlock happens, but this is a desirable change anyway as it increases the parallelism when running concurrent proxy resolvers. BUG=44013,44005 Review URL: http://codereview.chromium.org/2023009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47181 0039d316-1c4b-4281-b951-d872f2087c98
* Fix --host-rules to work properly with proxies.willchan@chromium.org2010-05-131-7/+19
| | | | | | Review URL: http://codereview.chromium.org/2073004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47178 0039d316-1c4b-4281-b951-d872f2087c98
* Add SPDY SYN_STREAM and SYN_REPLY events to about:net-internals.willchan@chromium.org2010-05-138-34/+106
| | | | | | | | BUG=43237 Review URL: http://codereview.chromium.org/2004010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47174 0039d316-1c4b-4281-b951-d872f2087c98
* Remove CRLF from three lines in http_auth_handler.hcbentzel@chromium.org2010-05-131-3/+3
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/2101001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47164 0039d316-1c4b-4281-b951-d872f2087c98
* Added authentication scheme as key to HttpAuthCache.cbentzel@chromium.org2010-05-135-84/+131
| | | | | | | | | | | | | | | | | Behavioral changes are small; this is mostly a syntactic sugar change. But there are a few behavioral changes: * If a web site replies with different schemes for the same realm, we'll have two entries in the cache. * There will not be a log entry in HttpNetworkTransaction::SelectNextAuthIdentityToTry when we have the wrong authentication scheme (we don't see that entry any more) * We will no longer return ERR_TUNNEL_CONNECTION_FAILED from SocketStream::HandleAuthChallenge when there's an entry in the cache with a non-basic authentication scheme (we won't know it's there). Contributed by rdsmith@chromium.org BUG=33433 TEST=HttpAuthCacheTest.* (as modified in this commit), HttpNetworkTransactionTest.*, SocketStreamTest.*, only on Linux. Review URL: http://codereview.chromium.org/1949004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47149 0039d316-1c4b-4281-b951-d872f2087c98
* Add --host-rules support.willchan@chromium.org2010-05-128-100/+242
| | | | | | | | | The format for --host-rules is identical to --host-resolver-rules. The difference is that --host-rules affects the endpoint of the HttpNetworkTransaction, not just the host resolver. So, this means the host passed to the host resolver and the TCP connect(), the tunnel CONNECT, and the SOCKS connect will be different. Review URL: http://codereview.chromium.org/2057007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47083 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Alternate-Protocol support by default when NPN support is enabled.willchan@chromium.org2010-05-121-0/+1
| | | | | | Review URL: http://codereview.chromium.org/2015019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47076 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: Add a backend factory class so that the callerrvargas@google.com2010-05-126-305/+272
| | | | | | | | | | | | has more control about the backend instantiation. BUG=none TEST=current unit tests. Review URL: http://codereview.chromium.org/2000011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47050 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb NetLog into SpdySession.willchan@chromium.org2010-05-129-37/+50
| | | | | | | | TODO(willchan): Start logging events for SpdySession. Review URL: http://codereview.chromium.org/2059004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47047 0039d316-1c4b-4281-b951-d872f2087c98
* Bypass the DNS cache when the LOAD_VALIDATE_CACHE load flag is set.eroman@chromium.org2010-05-112-4/+19
| | | | | | | | | | | This fixes problem where cached negative DNS entries were being used on a regular page refresh. BUG=34737 TEST=HttpNetworkTransactionTest.BypassHostCacheOnRefresh* Review URL: http://codereview.chromium.org/2051006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46951 0039d316-1c4b-4281-b951-d872f2087c98
* Add the response headers to net-internals.willchan@chromium.org2010-05-113-2/+69
| | | | | | | | BUG=43812 Review URL: http://codereview.chromium.org/2015011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46943 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ~FileStream in POSIX to auto close if the flag is set. This is left from myjianli@chromium.org2010-05-111-1/+2
| | | | | | | | | | | last patch. BUG=none TEST=none Review URL: http://codereview.chromium.org/1989011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46937 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Allow the disk cache histograms to generatervargas@google.com2010-05-112-10/+71
| | | | | | | | | | | | | more than one name so that we can move a user from one group to another within the same session. BUG=none TEST=unittest Review URL: http://codereview.chromium.org/2044007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46931 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: fix navigating to files listed under non-ASCII charactersphajdan.jr@chromium.org2010-05-114-33/+16
| | | | | | | | | | | We need to convert the file name back to server encoding. BUG=38016 TEST=see bug Review URL: http://codereview.chromium.org/1857002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46900 0039d316-1c4b-4281-b951-d872f2087c98
* Update V8 to version 2.2.9sgjesse@google.com2010-05-111-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2003010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46897 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the HOST_RESOLVER_IMPL_OBSERVER_* log events. I have never found ↵eroman@chromium.org2010-05-113-31/+2
| | | | | | | | these to be useful, and they just add noise to the log. Review URL: http://codereview.chromium.org/2033008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46885 0039d316-1c4b-4281-b951-d872f2087c98
* Update comments for new request header events.willchan@chromium.org2010-05-111-9/+4
| | | | | | | | BUG=43812 Review URL: http://codereview.chromium.org/2035013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46880 0039d316-1c4b-4281-b951-d872f2087c98
* Add http request headers into about:net-internals.willchan@chromium.org2010-05-103-1/+74
| | | | | | | | BUG=43812 Review URL: http://codereview.chromium.org/2010009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46870 0039d316-1c4b-4281-b951-d872f2087c98
* Replace about:net-internals with the javascript-based frontend.eroman@chromium.org2010-05-1010-1153/+3
| | | | | | | | | | (DNS request tracing is the only feature lost in this transition; it needs to be added back under the new framework). BUG=37421 Review URL: http://codereview.chromium.org/2008007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46868 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Add a check to MockHttpCache to make surervargas@google.com2010-05-104-81/+151
| | | | | | | | | | | | | that we always use a completion callback when making disk cache requests, and add new states to truncate the entry's metadata. BUG=26729 TEST=unittests Review URL: http://codereview.chromium.org/2006007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46867 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 46757.willchan@chromium.org2010-05-104-26/+131
| | | | | | | | | OnAvailableSocketSlot() was dereferencing a NULL pointer. Add a NULL check. Add a test. BUG=42267 Review URL: http://codereview.chromium.org/2050005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46837 0039d316-1c4b-4281-b951-d872f2087c98
* Added #ifdef to allow Chromium to enable proprietary codecs.scherkus@chromium.org2010-05-101-2/+2
| | | | | | | | | | | | | | We need to enable MP4 and MP3 support on tegra2 boards. This change will let us enable this support via a flag in make.conf. Patch by jneddo@nvidia.com: http://codereview.chromium.org/1942003/show BUG=none TEST=none Review URL: http://codereview.chromium.org/2001004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46824 0039d316-1c4b-4281-b951-d872f2087c98
* Fix valgrind memcheck issues with GetPushStream unit test.cbentzel@chromium.org2010-05-106-11/+47
| | | | | | | | | BUG=None TEST=valgrind --leak-check=yes net_unittests --gtest_filter="*SpdySessionTest.GetPushStream*" Review URL: http://codereview.chromium.org/1951001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46823 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to using TimeTicks for profiling and histogramsjar@chromium.org2010-05-103-5/+6
| | | | | | | | | | | Avoid using wall clock time, which can be changed by the user, or impacted by Daylight Savings transitions etc. BUG=14193 r=eroman Review URL: http://codereview.chromium.org/1253005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46821 0039d316-1c4b-4281-b951-d872f2087c98
* Pass nulls through test sockets.gavinp@chromium.org2010-05-103-12/+37
| | | | | | | | | | | | | Fixing 35050, one of the tests I wrote for EPSV required NULS go through the testing framework. That created issue 42432 which covers permitting NULs through our socket tests. I added an interface to SimulateRead which passes in an explicit length, and moved as much of that into ftp_network_transaction_unittest as possible. BUG=42432 TEST=see the modified Epsv test in ftp_network_transaction_unittest.cc Review URL: http://codereview.chromium.org/1949003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46813 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 46757 - Fix IO thread hang on releasing a socket.sky@chromium.org2010-05-084-104/+26
| | | | | | | | | | | | | The problem was we assumed ProcessPendingRequest() would always make progress once the group's releasing socket went down to zero. However, in OnAvailableSocketSlot(), since the top stalled group might still have a releasing socket, it won't necessarily make progress. The algorithmic solution is to simply never do any socket slot processing in DoReleaseSocket() if there are any releasing sockets. This requires us to search for any stalled groups after releasing sockets gets back down to 0, so it requires the full group scan each time num_releasing_sockets goes back to 0. There is a performance hit here, but I think a linear search through 256~ groups in the worst case is ok. TODO(willchan): evaluate the perf hit and consider adding a secondary data structure to improve the stalled group search. BUG=42267 Review URL: http://codereview.chromium.org/2013009 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/1992010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46792 0039d316-1c4b-4281-b951-d872f2087c98
* On Windows, do not use the COMODO EV SGC CA certificatewtc@chromium.org2010-05-081-2/+54
| | | | | | | | | | | | | | | | | | | | issued by AddTrust External CA Root because it causes CertGetCertificateChain to report CERT_TRUST_IS_NOT_VALID_FOR_USAGE. This is a temporary workaround. The proper fix is to modify NSS to provide all the certificates sent by the server to the certificate verification callback. Fix a certificate context leak. R=agl,willchan BUG=43538 TEST=On a Windows computer that doesn't have the COMODO EV SGC CA certificate issued by COMODO Certification Authority, visit https://mixi.jp/ . Chrome should not display the "certificate invalid" error page. Review URL: http://codereview.chromium.org/2036005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46774 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IPv6 probe class to better handle cancellation of the job.jar@chromium.org2010-05-081-9/+19
| | | | | | | | | | | | | The code did not handle cancellation properly, and DCHECKs were firing. Recrafted code to avoid checking for runs "on origin_thread" after a cancellation (which destroys the record of the orgin_thread_). BUG=43600 r=willchan Review URL: http://codereview.chromium.org/2050002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46769 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the standalone webkit build.darin@chromium.org2010-05-071-2/+6
| | | | | | | | | | | | | | | Ideally this dependency on chrome from net should not exist, but until that is resolved, we can at least avoid the dependency when using net.gyp from the standalone webkit build (which lacks a checkout of chrome/). R=nick BUG=none TEST=none Review URL: http://codereview.chromium.org/1996010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46758 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IO thread hang on releasing a socket.willchan@chromium.org2010-05-074-26/+104
| | | | | | | | | | The problem was we assumed ProcessPendingRequest() would always make progress once the group's releasing socket went down to zero. However, in OnAvailableSocketSlot(), since the top stalled group might still have a releasing socket, it won't necessarily make progress. The algorithmic solution is to simply never do any socket slot processing in DoReleaseSocket() if there are any releasing sockets. This requires us to search for any stalled groups after releasing sockets gets back down to 0, so it requires the full group scan each time num_releasing_sockets goes back to 0. There is a performance hit here, but I think a linear search through 256~ groups in the worst case is ok. TODO(willchan): evaluate the perf hit and consider adding a secondary data structure to improve the stalled group search. BUG=42267 Review URL: http://codereview.chromium.org/2013009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46757 0039d316-1c4b-4281-b951-d872f2087c98
* Pass HttpRequestHeaders to URLRequest::SetExtraRequestHeaders().willchan@chromium.org2010-05-074-42/+51
| | | | | | | | BUG=22588 Review URL: http://codereview.chromium.org/1998008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46752 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: Handle the asynchronous instantiation of thervargas@google.com2010-05-075-191/+624
| | | | | | | | | | | | | backend. We queue all trasnactions that reach Start before we are done creating the disk cache. BUG=26729 TEST=unittests. Review URL: http://codereview.chromium.org/2002002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46745 0039d316-1c4b-4281-b951-d872f2087c98
* Add DCHECK to detect misuse of HISTOGRAM interface.jar@chromium.org2010-05-071-8/+16
| | | | | | | | | | | | | | | The interface (for perf reasons) snapshots the histogram name, and reuses it in future calls. As a result, any attempt to modulate (change) the name between call is ignored. This change uses a DCHECK to detect such abuse. BUG=43377 BUG=43375 r=vandebo Review URL: http://codereview.chromium.org/2019001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46726 0039d316-1c4b-4281-b951-d872f2087c98
* Specify alternate OCSP AIA info for certificates issued bywtc@chromium.org2010-05-071-5/+29
| | | | | | | | | | | | | | the other "Network Solutions Certificate Authority" to work around NSS bug 564334. R=ukai BUG=41730 TEST=on a Linux distribution with NSS 3.12.6, visit https://blackboard.mines.edu and then https://www.networksolutions.com. We should not get the certificate revoked error page. Review URL: http://codereview.chromium.org/2011007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46684 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run a couple of URLRequestTests under TSan/Wintimurrrr@chromium.org2010-05-071-0/+2
| | | | | | | TBR=glider Review URL: http://codereview.chromium.org/2025003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46671 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix a DCHECK failure related to usage of Singletonsphajdan.jr@chromium.org2010-05-071-7/+6
| | | | | | | | | | | | | | | | and WorkerPool. Also add a warning for users of WorkerPool that they need to be very careful about subtle issues. Also see discussion in http://codereview.chromium.org/1834002/show TEST=none BUG=30177 Review URL: http://codereview.chromium.org/2033001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46665 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify the Windows <keygen> implementation by makingwtc@chromium.org2010-05-061-105/+49
| | | | | | | | | | | | | | | better use of CryptoAPI. Contributed by Ryan Sleevi <ryan.sleevi@gmail.com>. Original review URL: http://codereview.chromium.org/1934001 R=wtc BUG=148 TEST=Keygenhandler.SmokeTest Review URL: http://codereview.chromium.org/2021003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46630 0039d316-1c4b-4281-b951-d872f2087c98
* Add Chromium side implementation for WebFileSystem interface in WebKit.jianli@chromium.org2010-05-063-5/+13
| | | | | | | | | BUG=none TEST=non Review URL: http://codereview.chromium.org/1748015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46625 0039d316-1c4b-4281-b951-d872f2087c98