| 256 |
256 |
| 257 h->state = GG_STATE_SENDING_QUERY; |
257 h->state = GG_STATE_SENDING_QUERY; |
| 258 } |
258 } |
| 259 |
259 |
| 260 if (h->state == GG_STATE_SENDING_QUERY) { |
260 if (h->state == GG_STATE_SENDING_QUERY) { |
| 261 size_t res; |
261 ssize_t res; |
| 262 |
262 |
| 263 if ((res = write(h->fd, h->query, strlen(h->query))) < 1) { |
263 if ((res = write(h->fd, h->query, strlen(h->query))) < 1) { |
| 264 gg_debug(GG_DEBUG_MISC, "=> http, write() failed (len=%d, res=%d, errno=%d)\n", strlen(h->query), res, errno); |
264 gg_debug(GG_DEBUG_MISC, "=> http, write() failed (len=%d, res=%d, errno=%d)\n", strlen(h->query), res, errno); |
| 265 gg_http_error(GG_ERROR_WRITING); |
265 gg_http_error(GG_ERROR_WRITING); |
| 266 } |
266 } |