#include "fd.h"
#include "buffer_tree.h"
-/** the output buffer size of the http receiver */
-#define BUFSIZE (32 * 1024)
-
/**
* the possible states of a http receiver node
*
close(phd->fd);
btr_pool_free(phd->btrp);
- free(rn->buf);
free(rn->private_data);
}
close(fd);
return ret;
}
- rn->buf = para_calloc(BUFSIZE);
rn->private_data = phd = para_calloc(sizeof(struct private_http_recv_data));
phd->fd = fd;
phd->status = HTTP_CONNECTED;