Explicitly setup the connection buckets, instead of relying on the read or
write code to do it in time. Resolve an error code leak.

* outgoing.c
  (do_conn_setup): Rename to...
  (serf_connection__perform_setup): ... this.
  (prepare_conn_streams): Remove. Folded into only remaining caller.
  (connect_connection): Call serf_connection__perform_setup directly.

  (write_to_connection,
   read_from_connection): Just assume connection streams exist when connected.

* serf_private.h
  (serf_connection__perform_setup): New function.

* ssltunnel.c
  (handle_response): Explicitly setup connection over tunnel.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1715823 13f79535-47bb-0310-9956-ffa450edef68
3 files changed