]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - dccp_recv.c
Kill fields buf, loaded and output_error of struct receiver node.
[paraslash.git] / dccp_recv.c
index dae3bcb0cae70b429b9a84141bf6ab62a5115f70..0b62529f417352715d14304685565f1efeae581d 100644 (file)
@@ -28,9 +28,6 @@
 
 #include "dccp_recv.cmdline.h"
 
-/** the size of the output buffer */
-#define DCCP_BUFSIZE 40960
-
 /**
  * data specific to the dccp receiver
  *
@@ -50,8 +47,6 @@ static void dccp_recv_close(struct receiver_node *rn)
 
        if (pdd && pdd->fd > 0)
                close(pdd->fd);
-       free(rn->buf);
-       rn->buf = NULL;
        free(rn->private_data);
        rn->private_data = NULL;
 }
@@ -80,7 +75,6 @@ static int dccp_recv_open(struct receiver_node *rn)
        ret = mark_fd_nonblocking(fd);
        if (ret < 0)
                goto err;
-       rn->buf = para_calloc(DCCP_BUFSIZE);
        rn->private_data = pdd = para_calloc(sizeof(struct private_dccp_recv_data));
        pdd->btrp = btr_pool_new("dccp_recv", 320 * 1024);
        pdd->fd = fd;
@@ -127,10 +121,6 @@ static void dccp_recv_post_select(struct sched *s, struct task *t)
                return;
        if (!FD_ISSET(pdd->fd, &s->rfds))
                return; /* nothing to do */
-       if (rn->loaded >= DCCP_BUFSIZE) {
-               t->error = -E_DCCP_OVERRUN;
-               return;
-       }
        ret = -E_DCCP_OVERRUN;
        sz = btr_pool_get_buffer(pdd->btrp, &buf);
        if (sz == 0)