Skip to content
Extraits de code Groupes Projets
Valider 96eecffa rédigé par cerdic's avatar cerdic
Parcourir les fichiers

Suite de r24152 : quand le cron est sur un port non standard il faut ajouter...

Suite de r24152 : quand le cron est sur un port non standard il faut ajouter le port au host envoye en TCP pour que le SERVER_PORT soit bien renseigne a l'arrivee (localhost:8888 dans mon cas)
parent eaec1206
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -641,11 +641,15 @@ function queue_affichage_cron() {
$errno, $errstr, 1);
if ($fp) {
$host_sent = $parts['host'];
if (isset($parts['port']) and $parts['port'] !== $port) {
$host_sent .= ':' . $parts['port'];
}
$timeout = 200; // ms
stream_set_timeout($fp, 0, $timeout * 1000);
$query = $parts['path'] . ($parts['query'] ? "?" . $parts['query'] : "");
$out = "GET " . $query . " HTTP/1.1\r\n";
$out .= "Host: " . $parts['host'] . "\r\n";
$out .= "Host: " . $host_sent . "\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
spip_timer('read');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter