1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 21:25:42 +02:00

core: fix connection to host in child process when socket is non-blocking (with or without proxy)

This commit is contained in:
Sebastien Helleu
2012-08-08 14:20:48 +02:00
parent 46bc181933
commit 777fa366d7
4 changed files with 180 additions and 33 deletions
+8
View File
@@ -11758,6 +11758,10 @@ weechat_network_pass_proxy
Establish a connection/authentification to a proxy.
[IMPORTANT]
This function is blocking on call to connect(), so it must be called in a forked
process only, to not block WeeChat.
Prototype:
[source,C]
@@ -11801,6 +11805,10 @@ weechat_network_connect_to
Establish a connection to a remote host.
[IMPORTANT]
This function is blocking on call to connect(), so it must be called in a forked
process only, to not block WeeChat.
Prototype:
[source,C]
+8
View File
@@ -11958,6 +11958,10 @@ weechat_network_pass_proxy
Etablit une connexion/authentification avec un proxy.
[IMPORTANT]
Cette fonction est bloquante sur l'appel à connect(), donc elle doit être
appelée sans un processus issu d'un "fork", pour ne pas bloquer WeeChat.
Prototype :
[source,C]
@@ -12001,6 +12005,10 @@ weechat_network_connect_to
Etablit une connexion à une machine distante.
[IMPORTANT]
Cette fonction est bloquante sur l'appel à connect(), donc elle doit être
appelée sans un processus issu d'un "fork", pour ne pas bloquer WeeChat.
Prototype :
[source,C]
+10
View File
@@ -11886,6 +11886,11 @@ weechat_network_pass_proxy
Stabilisce una connessione/autenticazione con un proxy.
[IMPORTANT]
// TRANSLATION MISSING
This function is blocking on call to connect(), so it must be called in a forked
process only, to not block WeeChat.
Prototipo:
[source,C]
@@ -11930,6 +11935,11 @@ weechat_network_connect_to
Stabilisce una connessione con un host remoto.
[IMPORTANT]
// TRANSLATION MISSING
This function is blocking on call to connect(), so it must be called in a forked
process only, to not block WeeChat.
Prototipo:
[source,C]
+154 -33
View File
File diff suppressed because it is too large Load Diff