X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_recv.c;h=13c34b125d7b8009310dc0c44d6adbba7949aea6;hp=eeb7c57a71a52ea26cdeb1ee8751939a6b2518f7;hb=e65a59602ff5a5ff38ce59f40aa222aa06ce3bda;hpb=19d9318abf42debb15d833d4e56ab636893285c3 diff --git a/dccp_recv.c b/dccp_recv.c index eeb7c57a..13c34b12 100644 --- a/dccp_recv.c +++ b/dccp_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2007 Andre Noll + * Copyright (C) 2006-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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));