Hi all,
Forecasts module expects closing the connection from the other side (yahoo
server) and starts parsing the response after the close event. But without
a http proxy the server's response contains a keep-alive http header and
the connection won't be closed so the forecasts module waits forever. So a
Connection: close http header should be added to the GET message:
--- e_mod_main.c 2008-09-15 15:55:59.000000000 +0200
+++ e_mod_main-mod.c 2008-09-15 15:48:16.000000000 +0200
@@ -593,7 +593,9 @@
degrees = 'c';
snprintf(forecast, sizeof(forecast), "/forecastrss?p=%s&u=%c",
inst->ci->code, degrees);
- snprintf(buf, sizeof(buf), "GET http://%s%s HTTP/1.1\r\nHost:
%s\r\n\r\n",
+ snprintf(buf, sizeof(buf), "GET http://%s%s HTTP/1.1\r\n"
+ "Host: %s\r\n"
+ "Connection: close\r\n\r\n",
inst->ci->host, forecast, inst->ci->host);
DEBUG("Server: %s", buf);
ecore_con_server_send(inst->server, buf, strlen(buf));
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel