From f723fa9655e1e7fadc1a15b94b66de674ab9fe17 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 13 Mar 2019 00:50:48 -0700 Subject: fixes #815 Eliminate socket filters on message queues This also eliminates the enforcement of NNG_OPT_RECVMAXSZ for inproc, which never really made much sense. This helps inproc go faster. While here, also clean up the entry point for protocols to support a drain option, since we don't use that anywhere. --- src/core/socket.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/core/socket.c') diff --git a/src/core/socket.c b/src/core/socket.c index dadc9073..0224a812 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -571,11 +571,6 @@ nni_sock_create(nni_sock **sp, const nni_proto *proto) (void) nni_sock_setopt( s, NNG_OPT_TCP_KEEPALIVE, &on, sizeof(on), NNI_TYPE_BOOL); - if (s->s_sock_ops.sock_filter != NULL) { - nni_msgq_set_filter( - s->s_urq, s->s_sock_ops.sock_filter, s->s_data); - } - *sp = s; return (rv); } -- cgit v1.2.3-70-g09d2