View | Details | Raw Unified | Return to bug 24795
Collapse All | Expand All

(-)a/vhttpd/lib/http_client.c (-6 / +9 lines)
Lines 14-24 request_server(channel_t *ch, const message_t *request, message_t **response) Link Here
14
14
15
  conn = connection_new(ch,NULL,NULL);
15
  conn = connection_new(ch,NULL,NULL);
16
16
17
  if (connection_send_message(conn,request))
17
  if (connection_send_message(conn,request)){
18
    return bad_request;
18
    retcode=bad_request;
19
19
  }
20
  *response = create_response_message(unfinished);
20
  else {
21
  while ((retcode = connection_receive_message(conn,*response)) == unfinished) ; /* try until success */
21
    *response = create_response_message(unfinished);
22
    while ((retcode = connection_receive_message(conn,*response)) == unfinished) ; /* try until success */
23
  }
24
  destroy_channel (connection_get_channel(conn));
25
  connection_delete (conn);
22
  return retcode;
26
  return retcode;
23
}
27
}
24
28
25
- 

Return to bug 24795