Application support for optimistic data: Torsocks
Now that Tor (as of 0.2.3.x) supports optimistic data, we should try to get torsocks to support it.
This won't be totally trivial, since we'll need to tell the application "yes, it connected" early, and then give an error if the connection actually happens. (Perhaps we can get away with doing an early shutdown() on the connection so that reads and writes fail, but the fd lingers. If not, we'll have to intercept read, write, pread, pwrite, writev, select, etc, so that we can give an error if needed.)
There was some discussion of this in the comments of #1849 (moved).