History log of /libcore/support/src/test/java/tests/support/Support_TestWebServer.java
Revision Date Author Comments
903b3f5b6a6e524cb4d88b83ea32e7c355392271 19-Jul-2012 Elliott Hughes <enh@google.com> Start removing Support_PortManager.

A bad idea, badly implemented.

Bug: 2441548
Change-Id: I34c990f6fd9d746771846f186a7ab3ab59e78a9f
8baf143a7c8921d07b54adbc66ac1e5b42de5fe6 21-Apr-2010 Jesse Wilson <jessewilson@google.com> Rewrite the HTTP connection pool used by HttpURLConnection.

This started off as incremental changes, but it ended up going
far enough that it earned the "rewrite" badge.

System.getProperty() is not called for every HTTP connection.
This is slightly controversial, but the old code had to bend
over backwards to support dynamic pool changes, and it didn't
even support the case when the pool shrank but not to 0.

The new code doesn't do I/O within static synchronized blocks.
This should reduce contention described here: http://b/issue?id=2606547

Also: simpify implementation, prettier names, more focused doc.
6461d8fe30e94c08d10ccd40c9ceeb83b9c43b7b 12-Feb-2010 Elliott Hughes <enh@google.com> Remove some potential test flakiness.

Bug: 2441548
398cf32a303a3b2a878a48cbae54be5ac23f7ecd 07-Jan-2010 Jesse Wilson <jessewilson@google.com> Fixing our default HTTP Accept header to be spec-compliant.

See bug http://code.google.com/p/android/issues/detail?id=5843

Also fixing a bug in the test webserver, where we weren't formatting
the headers properly. I'm dumbfounded how the tests passed previously;
although I fear that omitting the @TestTargetNew annotation might mean
that they weren't being run. I'll investigate that in a follow up.
e40c9e3935a5024c0f3ebfb3f1441fcd5c48ed86 12-Nov-2009 Elliott Hughes <enh@google.com> Fix HttpURLConnection's chunked encoding behavior.

A third-party developer who wasn't reading to the end of the stream found that
their next connection would return junk, which turned out to be the tail of
the first response (thanks to connection recycling). Make sure we clean up
a chunked-encoding stream before allowing the connection to be reused.

Enhance our test web server to implement chunked encoding properly, with
configurable chunk sizes, rather than just responding with a single chunk.

Bug: http://code.google.com/p/android/issues/detail?id=2939
4fefecee9d4a5d2a4510f516b4015607b19e8d09 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
a152bc98bbb8feadb1b8b755f1f40fb66548ea12 05-Nov-2009 Elliott Hughes <enh@google.com> Remove deadlock-prone thread pool.

This is only test code, so let's not make it any more complicated than it
needs to be.

(The code sometimes locked the Vector before the individual Worker, and
sometimes the other way round.)
adad03692b86958bbc1da598c260b5e322f4d8ce 12-Sep-2009 Jesse Wilson <jessewilson@google.com> Fixing the delimiter for the HTTP "Accept" header to be well-formed.

See bug 2107897.
5b4db481fd2dd84cf1f54136b0c6cbb0fbc72b03 21-Apr-2009 Urs Grob <> AI 147126: am: CL 147121 Fixes for tests in the luni module.
There are still some tests that are failing in the cts host. This CL will fix most of them in the luni module.
Original author: ursg
Merged from: //branches/cupcake/...

Automated import of CL 147126
b90da8218274400c8710211d467ed28f23bc28ba 21-Apr-2009 Urs Grob <> AI 147127: am: CL 147126 am: CL 147121 Fixes for tests in the luni module.
There are still some tests that are failing in the cts host. This CL will fix most of them in the luni module.
Original author: ursg
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 147127
214a4e01cfb8ac07474c128b9431b19b7ed1b99b 21-Apr-2009 Urs Grob <> AI 147121: Fixes for tests in the luni module.
There are still some tests that are failing in the cts host. This CL will fix most of them in the luni module.
BUG=1285921

Automated import of CL 147121