Patch by Kilvády Balázs, fixes problems with hanging connections...
SVN revision: 36130
This commit is contained in:
parent
07b0c6f3ab
commit
d42cafd178
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue