From c2f57a38b31c82c355a219e6be12b225fc4b2f6c Mon Sep 17 00:00:00 2001 From: Andrei Tomashpolskiy Date: Thu, 22 Aug 2019 17:13:02 +0300 Subject: [PATCH] UDP engine aborts on networking-related errors from socket syscalls #2862 (remove unused function) --- src/tcp.cpp | 5 ----- src/tcp.hpp | 4 ---- 2 files changed, 9 deletions(-) diff --git a/src/tcp.cpp b/src/tcp.cpp index f5b7342160..aa0b998cd5 100644 --- a/src/tcp.cpp +++ b/src/tcp.cpp @@ -316,11 +316,6 @@ int zmq::tcp_read (fd_t s_, void *data_, size_t size_) #endif } -void zmq::tcp_assert_tuning_error (zmq::fd_t s_, int rc_) -{ - assert_socket_tuning_error (s_, rc_); -} - void zmq::tcp_tune_loopback_fast_path (const fd_t socket_) { #if defined ZMQ_HAVE_WINDOWS && defined SIO_LOOPBACK_FAST_PATH diff --git a/src/tcp.hpp b/src/tcp.hpp index fbb61af33f..a3fbb71d58 100644 --- a/src/tcp.hpp +++ b/src/tcp.hpp @@ -66,10 +66,6 @@ int tcp_write (fd_t s_, const void *data_, size_t size_); // Zero indicates the peer has closed the connection. int tcp_read (fd_t s_, void *data_, size_t size_); -// Asserts that an internal error did not occur. Does not assert -// on network errors such as reset or aborted connections. -void tcp_assert_tuning_error (fd_t s_, int rc_); - void tcp_tune_loopback_fast_path (const fd_t socket_); // Resolves the given address_ string, opens a socket and sets socket options