mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
relay/api: disconnect from remote in case of error when sending data
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
- relay/api: fix "body_type" returned when lines or nicks of a buffer are requested
|
||||
- relay/api: fix read of one buffer line
|
||||
- relay/api: automatically disconnect when the command `/upgrade` is executed on the remote
|
||||
- relay/api: disconnect from remote in case of error when sending data
|
||||
- relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters ([#1549](https://github.com/weechat/weechat/issues/1549))
|
||||
- relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure ([#1549](https://github.com/weechat/weechat/issues/1549))
|
||||
- spell: improve error displayed when a word can not be added to the dictionary ([#2144](https://github.com/weechat/weechat/issues/2144))
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13764,6 +13764,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: selhalo parsování příkazu \"%s\" (prosím oznamte to vývojárům):"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%s%s: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: nemohu vytvořit soket"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -26,7 +26,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-07-19 12:58+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -15180,6 +15180,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: Route „%s %s“ für Client %s%s%s konnte nicht ausgeführt werden"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%sremote[%s]: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%sremote[%s]: Socket kann nicht erstellt werden"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14095,6 +14095,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: falló la ejecución del comando \"%s\" por el cliente %s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%s%s: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: no es posible crear el socket"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"PO-Revision-Date: 2024-08-06 08:29+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-08-09 18:25+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -14862,6 +14862,10 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s : échec d'exécution de la route \"%s %s\" pour le client %s%s%s"
|
||||
|
||||
#, c-format
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%sremote[%s] : impossible d'envoyer des données, déconnexion"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr "remote[%s] : WeeChat : %s (%s), API : %s"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13206,6 +13206,10 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s nem sikerült a szervert létrehozni\n"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14109,6 +14109,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: impossibile eseguire il comando \"%s\" per il client %s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%s%s: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: impossibile creare il socket"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -14538,6 +14538,11 @@ msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr ""
|
||||
"%1$s%2$s: クライアント %4$s%5$s%6$s に対するコマンド \"%3$s\" の実行に失敗"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%s%s: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: ソケットの作成に失敗"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-22 19:43+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14462,6 +14462,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: nie udało się wykonać trasy „%s %s” dla klienta %s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%sremote[%s]: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%sremote[%s]: nie można utworzyć gniazda"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -14448,6 +14448,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: falha ao executar o comando \"%s\" do cliente %s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%s%s: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: não foi possível criar socket"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
+5
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13631,6 +13631,10 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: falha ao executar comando \"%s\" para cliente %d"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: não foi possível criar pipe"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13258,6 +13258,10 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "Не могу записать лог-файл \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s не могу создать сервер\n"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-07-10 11:29+0400\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14440,6 +14440,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: није успело извршавање руте „%s %s” за клијента %s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%sremote[%s]: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%sудаљени[%s]: није могао да се креира сокет"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr "удаљени[%s]: WeeChat: %s (%s), API: %s"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14714,6 +14714,11 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr "%s%s: \"%s\" komutu yürütülemedi, %s%s%s istemcisi için"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "%s%s: unable to create socket"
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr "%s%s: Soket oluşturulamıyor"
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
+5
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-06 08:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-09 18:24+0200\n"
|
||||
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -12067,6 +12067,10 @@ msgstr ""
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%sremote[%s]: unable to send data, disconnecting"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "remote[%s]: WeeChat: %s (%s), API: %s"
|
||||
msgstr ""
|
||||
|
||||
@@ -657,7 +657,15 @@ relay_remote_event_buffer_input_cb (const void *pointer,
|
||||
cJSON_CreateString (input_data));
|
||||
cJSON_AddItemToObject (json, "body", json_body);
|
||||
|
||||
relay_remote_network_send_json (ptr_remote, json);
|
||||
if (relay_remote_network_send_json (ptr_remote, json) <= 0)
|
||||
{
|
||||
weechat_printf (
|
||||
NULL,
|
||||
_("%sremote[%s]: unable to send data, disconnecting"),
|
||||
weechat_prefix ("error"),
|
||||
ptr_remote->name);
|
||||
relay_remote_network_disconnect (ptr_remote);
|
||||
}
|
||||
|
||||
cJSON_Delete (json);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user