X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=c0618602571975fbb6ab17b80f633eb8d33aaca0;hp=eeb7c57a71a52ea26cdeb1ee8751939a6b2518f7;hb=73f02f72cb49baebff3e0f6946750a5bc0693321;hpb=0f1f782c51773b4db2597e07f4cba4cadf5eddf1 diff --git a/dccp_recv.c b/dccp_recv.c index eeb7c57a..c0618602 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -61,6 +61,13 @@ static int dccp_recv_open(struct receiver_node *rn) if (ret < 0) return ret; + /* + * Disable unused CCIDs: the receiver does not send any application data to the + * server. By shutting down this unused path we reduce internal processing costs, + * as the unused CCIDs (in the kernel) are then bypassed. + */ + if (shutdown(ret, SHUT_WR) < 0) + return -ERRNO_TO_PARA_ERROR(errno); rn->buf = para_calloc(DCCP_BUFSIZE); rn->private_data = pdd = para_calloc(sizeof(struct private_dccp_recv_data));