summaryrefslogtreecommitdiffstats
path: root/net/base/nss_memio.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix code formatting problems reported by PVS-Studio.wtc@chromium.org2013-08-131-4/+4
| | | | | | | | | | | | See http://www.viva64.com/en/b/0205/#ID0EXRFM R=rsleevi@chromium.org BUG=271530 TEST=none Review URL: https://chromiumcodereview.appspot.com/22883002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217131 0039d316-1c4b-4281-b951-d872f2087c98
* Gracefully handle an asynchronous write disconnect when an SSL read is pendingrsleevi@chromium.org2013-06-171-0/+14
| | | | | | | | | BUG=249848 R=wtc Review URL: https://chromiumcodereview.appspot.com/17105003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206751 0039d316-1c4b-4281-b951-d872f2087c98
* SSLClientSocket::IsConnected should care for internal bufferstoyoshim@chromium.org2013-01-251-0/+8
| | | | | | | | | | | | | | | | SSLClientSocket::IsConnected() and SSLClientSocket::IsConnectedAndIdle() may return false though it has buffered data. They should care for internally processing buffer. There are various implementation, for NSS, OpenSSL, and platform dependent system libraries. This CL fix the issue on NSS. Fix for others will follow. BUG=160033 TEST=browser_tests, net_unittests Review URL: https://codereview.chromium.org/11366155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178775 0039d316-1c4b-4281-b951-d872f2087c98
* When using NSS, only schedule transport socket reads when the transport ↵rsleevi@chromium.org2012-12-201-0/+11
| | | | | | | | | | | | | | | | | | | buffer is empty. Rather then attempting to constantly keep the NSS memio constantly saturated by constantly issuing socket reads, only attempt to read data from the underlying transport when the NSS memio has been fully drained. This lets the OS manage the socket buffers and can significantly reduce the number of Read()s issued against the transport socket in optimal conditions. R=wtc@chromium.org BUG=166741 TEST=none Review URL: https://chromiumcodereview.appspot.com/11633021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174136 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the sizes of the circular buffers used by SSLClientSocketNSSwtc@chromium.org2012-09-111-3/+3
| | | | | | | | | | | | | | | and SSLServerSocketNSS. Larger buffers result in fewer Read() and Write() calls, improving performance. R=rsleevi@chromium.org,agl@chromium.org BUG=69813 TEST=none Review URL: https://chromiumcodereview.appspot.com/10919167 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155889 0039d316-1c4b-4281-b951-d872f2087c98
* net: When using False Start merge Finished and Application Data records.agl@chromium.org2010-09-081-5/+21
| | | | | | | | | | | | | | | | | When using False Start, this patch causes NSS to perform a single write which contains the ClientKeyExchange, ChangeCipherSpec, Finished and first application data record. This removes a source of non-determinism when dealing with False Start intolerant servers. Previously, Chrome may, or may not work depending on network timing. BUG=none TEST=none http://codereview.chromium.org/3331005/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58838 0039d316-1c4b-4281-b951-d872f2087c98
* memio_SetPeerName implicitly assumes that struct sockaddr is the same as ↵pvalchev@google.com2010-03-311-9/+3
| | | | | | | | | PRNetAddr, but this isn't true on *BSD patch from sprewell@jaggeri.com Review URL: http://codereview.chromium.org/1589001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43179 0039d316-1c4b-4281-b951-d872f2087c98
* Really connect to the same server in FTP network transaction.phajdan.jr@chromium.org2010-02-201-2/+8
| | | | | | | | | | | | Also create necessary infrastructure to know the address a client socket is connected to. TEST=Covered by net_unittests. BUG=35670 Review URL: http://codereview.chromium.org/598071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39559 0039d316-1c4b-4281-b951-d872f2087c98
* Define the GetPeerName method of the ClientSocket interface for allwtc@chromium.org2009-11-301-1/+0
| | | | | | | | | | | | | | | platforms, in preparation for using SSLClientSocketNSS on Windows. nss_memio.c does not need to include <unistd.h> Fix style nits. R=eroman BUG=28744 TEST=none Review URL: http://codereview.chromium.org/440031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33319 0039d316-1c4b-4281-b951-d872f2087c98
* Delete more unused functions in nss_memio.c.thestig@chromium.org2009-04-141-32/+0
| | | | | | Review URL: http://codereview.chromium.org/67142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13702 0039d316-1c4b-4281-b951-d872f2087c98
* Delete unused functions in nss_memio.c.willchan@chromium.org2009-04-131-30/+0
| | | | | | | | | /usr/local/google/chromium3/src/net/base/nss_memio.c:142: warning: 'memio_buffer_empty' defined but not used /usr/local/google/chromium3/src/net/base/nss_memio.c:148: warning: 'memio_buffer_full' defined but not used Review URL: http://codereview.chromium.org/67098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13626 0039d316-1c4b-4281-b951-d872f2087c98
* Slight code change to make some global variables const.maruel@google.com2009-03-101-13/+13
| | | | | | | Fix >80 cols lines. Review URL: http://codereview.chromium.org/42013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11342 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes CRLF and trailing white spaces.maruel@chromium.org2009-03-051-12/+12
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
* Port SSLClientSocket to Linuxdkegel@google.com2008-10-221-0/+547
Passes tests (once you enable them by removing DISABLED_). Probably want to add a mock https server so we can leave those tests enabled when we check in. Had to add full duplex support to TCPClientSocket on Linux to avoid kludgy plumbing issues. Also had to add dummy implementation of X509Certificate::~X509Certificate to prevent link error. Rediffed to current trunk, addressed all review issues. Review URL: http://codereview.chromium.org/4049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3751 0039d316-1c4b-4281-b951-d872f2087c98