diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index e48560d..6d43070 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 02:35+0300\n" +"POT-Creation-Date: 2024-08-09 02:56+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 2ebc57f..378b375 100644 --- a/src/mptp/mptp.c +++ b/src/mptp/mptp.c @@ -91,6 +91,12 @@ 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; + } + return true; }