There are currently several work-arounds for bugs in Android FileTransfer.java, and I think I've finally hit one that I don't know how to work-around without changing underlying networking stacks (CB-2293).
One option is to switch to HttpClient, but perhaps this is a better option: https://github.com/square/okhttp/tree/master/src/main/java/com/squareup/okhttp It looks to be written by Jesse Wilson (who used to work at Google on Android's network API), and exposes the same interface as URLConnection. It also adds SPDY support. I'd like to give it a try this week, but since it's an external dep, wanted to raise awareness of it.
