From f5d8514a276dae1c1719e67c81cb67abffb2371e Mon Sep 17 00:00:00 2001 From: ngn Date: Fri, 9 Aug 2024 03:34:02 +0300 Subject: [PATCH] fix: remove NODELAY and CORK options --- locale/tr/LC_MESSAGES/libmp.po | 2 +- src/mptp/mptp.c | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index e96703f..fb7aafb 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-09 03:26+0300\n" +"POT-Creation-Date: 2024-08-09 03:32+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/mptp/mptp.c b/src/mptp/mptp.c index e55ebbc..8e2e6b2 100644 --- a/src/mptp/mptp.c +++ b/src/mptp/mptp.c @@ -91,18 +91,6 @@ bool lm_mptp_socket_opts(int sock){ return false; } - if (setsockopt(sock, SOL_TCP, TCP_NODELAY, &flags, sizeof(int)) < 0) { - lm_error_set(LM_ERR_MPTPSetsockopt); - lm_mptp_close(sock); - return false; - } - - if (setsockopt(sock, SOL_TCP, TCP_CORK, &flags, sizeof(int)) < 0) { - lm_error_set(LM_ERR_MPTPSetsockopt); - lm_mptp_close(sock); - return false; - } - return true; }