~ubuntu-branches/ubuntu/utopic/mongrel2/utopic

« back to all changes in this revision

Viewing changes to src/connection.c

  • Committer: Package Import Robot
  • Author(s): Jan Niehusmann
  • Date: 2014-06-11 15:26:26 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20140611152626-7ixr3pdpkvjk7h92
Tags: 1.9.1-1
* Update to upstream release 1.9.1
* remove binary .swf files from source tarball
* revert certificate workaround (fixed upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
471
471
    int rc = 0;
472
472
    int total = 0;
473
473
    Proxy *proxy = Request_get_action(conn->req, proxy);
 
474
    check(proxy != NULL, "Proxy is NULL in reply_parse?")
474
475
    httpclient_parser *client = conn->client;
475
476
 
476
477
    rc = Proxy_read_and_parse(conn);
1032
1033
 
1033
1034
int Connection_deliver_raw_internal(Connection *conn, tns_value_t *data)
1034
1035
{
1035
 
    int ret=0;
1036
1036
    bstring buf;
1037
1037
    check(data->type==tns_tag_string, "deliver_raw_internal expected a string.");
1038
1038
    buf=data->value.string;
1039
 
    ret= IOBuf_send_all(conn->iob, bdata(buf), blength(buf));
 
1039
    int ret= IOBuf_send_all(conn->iob, bdata(buf), blength(buf));
 
1040
    check_debug(ret==blength(buf), "Failed to send all of the data: %d of %d", rc, avail)
1040
1041
    return 0;
1041
1042
 
1042
1043
error: