Skip to content

Commit

Permalink
Add more debug to Rhizome fetch code
Browse files Browse the repository at this point in the history
To help investigate issue #16, 'rhizomeprotocol' test case 1 failing on
Solaris.
  • Loading branch information
Andrew Bettison committed Sep 13, 2012
1 parent 1f4688d commit 45e3d1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rhizome_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ int rhizome_fetch_close(rhizome_file_fetch_record *q){
}

void rhizome_fetch_write(rhizome_file_fetch_record *q){
if (debug & DEBUG_RHIZOME_RX)
DEBUGF("write_nonblock(%d, %s)", q->alarm.poll.fd, alloca_toprint(-1, &q->request[q->request_ofs], q->request_len-q->request_ofs));
int bytes = write_nonblock(q->alarm.poll.fd, &q->request[q->request_ofs], q->request_len-q->request_ofs);
if (bytes == -1) {
WHY("Got error while sending HTTP request. Closing.");
Expand Down

0 comments on commit 45e3d1d

Please sign in to comment.