mozilla-services/android-sync — pull request #52 by liuche (2012-02-03 09:36:23+00:00)
Title: Bug 705767: Validate credentials before completing classic setup (+feedback on http error)

Also lifted out account creation and made some setup UI changes. We may want to validate the sync key length, because that is not checked against anything before being added to an account.

HTTP error: after a 401 unauthorized credential validation against the sync server, the next request will always fail with a ClientProtocolError. (throw ProtocolException in http://dxr.mozilla.org/mozilla/mozilla-central/mobile/android/base/httpclientandroidlib/impl/conn/DefaultResponseParser.java.html)
Not consuming the resource after use will make this problem disappear, but also exhausts the thread pool. Some detail about the Java HttpClient that I'm missing?