Patch by Kilvády Balázs, fixes problems with hanging connections...

SVN revision: 36130
This commit is contained in:
Miculcy Brian 2008-09-20 10:41:17 +00:00
parent 07b0c6f3ab
commit d42cafd178
1 changed files with 3 additions and 1 deletions

View File

@ -593,7 +593,9 @@ _forecasts_server_add(void *data, int type, void *event)
degrees = 'c'; degrees = 'c';
snprintf(forecast, sizeof(forecast), "/forecastrss?p=%s&u=%c", inst->ci->code, degrees); 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); inst->ci->host, forecast, inst->ci->host);
DEBUG("Server: %s", buf); DEBUG("Server: %s", buf);
ecore_con_server_send(inst->server, buf, strlen(buf)); ecore_con_server_send(inst->server, buf, strlen(buf));