1. 10 Oct, 2012 2 commits
  2. 08 Oct, 2012 3 commits
  3. 05 Oct, 2012 3 commits
  4. 04 Oct, 2012 1 commit
    • Elliott Hughes's avatar
      Rewrite NIO Pipe to use socketpair(2). · b2e6be1c
      Elliott Hughes authored
      Our Pipe originally used socket(2) to create AF_INET/AF_INET6
      sockets. This was clearly a bad idea.
      
      I rewrote it to use socketpair(2) and AF_UNIX, but this was
      before the big "expose POSIX" rewrite, so it required a bunch
      of hacks in the native code, so I went with pipe(2) instead.
      
      The trouble with pipe(2) is that we end up using FileChannel
      to implement the Pipe.SinkChannel and Pipe.SourceChannel, but
      the kernel won't wake a read(2) on a pipe if another thread
      calls close(2) on it, so we started failing interrupt tests.
      
      This (final?) rewrite is hopefully the best of all worlds:
      we don't have any INTERNET permission needs, the code is as
      simple as the pipe(2) code, and interruption works.
      
      Bug: 7084342
      Bug: 2735373
      Bug: http://code.google.com/p/android/issues/detail?id=9431
      
      (cherry picked from commit 32180823)
      
      Change-Id: Ib92cdf8c818f6bba1f00e191f1b624ce9e693754
      b2e6be1c
  5. 01 Oct, 2012 1 commit
    • Brian Carlstrom's avatar
      Merge... · 77b20888
      Brian Carlstrom authored
      Merge "NativeCryptoTest#test_SSL_do_handshake_clientCertificateRequested_throws_after_renegotiate failure" into jb-mr1-dev
      77b20888
  6. 30 Sep, 2012 2 commits
  7. 25 Sep, 2012 2 commits
    • Elliott Hughes's avatar
      Fix ConcurrentCloseTest flakiness. · 3d431999
      Elliott Hughes authored
      We were running the risk that the server's end of a client socket would get
      closed by the finalizer thread, resulting in read(2) returning 0 to the client,
      and the test failing like this:
      
        junit.framework.AssertionFailedError: read returned -1
            at libcore.java.net.ConcurrentCloseTest.test_read(ConcurrentCloseTest.java:121)
            at java.lang.reflect.Method.invokeNative(Native Method)
      
      (cherry-pick of 4bbcd7e5.)
      
      Bug: 7206024
      Change-Id: I0dae214a7ee609655f4f4781abf4457863bcfd5f
      3d431999
    • Narayan Kamath's avatar
      Strip content length in requests with "transparent" gzip handling. · 6d41a7cc
      Narayan Kamath authored
      We need to strip both the Content-Length and the Content-Encoding
      for such requests. In such requests, it will be the length of the
      compressed response. We hide the fact that compression is taking place
      from clients, so we shouldn't give them the content length either.
      
      (cherry picked from commit f9d60aed)
      
      Change-Id: Ic2776ecf020c34b1c55e2fb7e2f0728e553187a0
      6d41a7cc
  8. 24 Sep, 2012 6 commits
  9. 23 Sep, 2012 2 commits
  10. 22 Sep, 2012 2 commits
  11. 21 Sep, 2012 14 commits
  12. 20 Sep, 2012 2 commits