]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_recv.c
[btr] Fix merge_input_pool().
[paraslash.git] / http_recv.c
index cdb4bc151c4f580803160b80af672cc9d011bfa7..035d1f1908f9f176689fb5a51501d8b788372c17 100644 (file)
@@ -23,9 +23,6 @@
 #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
  *
@@ -151,7 +148,6 @@ static void http_recv_close(struct receiver_node *rn)
 
        close(phd->fd);
        btr_pool_free(phd->btrp);
-       free(rn->buf);
        free(rn->private_data);
 }
 
@@ -180,7 +176,6 @@ static int http_recv_open(struct receiver_node *rn)
                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;