Changeset 4576
- Timestamp:
- 02/17/10 20:07:21 (5 months ago)
- Location:
- trunk/varnish-cache
- Files:
-
- 8 modified
-
bin/varnishd/cache_center.c (modified) (2 diffs)
-
bin/varnishd/cache_fetch.c (modified) (1 diff)
-
bin/varnishd/cache_pipe.c (modified) (2 diffs)
-
bin/varnishd/cache_waiter_kqueue.c (modified) (1 diff)
-
bin/varnishd/cache_waiter_poll.c (modified) (1 diff)
-
bin/varnishd/mgt_child.c (modified) (1 diff)
-
lib/libvarnish/tcp.c (modified) (2 diffs)
-
lib/libvarnish/vss.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/varnish-cache/bin/varnishd/cache_center.c
r4574 r4576 272 272 * before we close, to get queued data transmitted. 273 273 */ 274 TCP_linger(sp->fd, 0);274 (void)TCP_linger(sp->fd, 0); 275 275 vca_close_session(sp, sp->doclose); 276 276 } … … 1217 1217 */ 1218 1218 if (sp->step == STP_FIRST || sp->step == STP_START) 1219 TCP_blocking(sp->fd);1219 (void)TCP_blocking(sp->fd); 1220 1220 1221 1221 /* -
trunk/varnish-cache/bin/varnishd/cache_fetch.c
r4545 r4576 368 368 VBE_AddHostHeader(sp); 369 369 370 TCP_blocking(vc->fd); /* XXX: we should timeout instead */370 (void)TCP_blocking(vc->fd); /* XXX: we should timeout instead */ 371 371 WRW_Reserve(w, &vc->fd); 372 372 (void)http_Write(w, hp, 0); /* XXX: stats ? */ -
trunk/varnish-cache/bin/varnishd/cache_pipe.c
r4414 r4576 80 80 return; 81 81 vc = sp->vbe; 82 TCP_blocking(vc->fd);82 (void)TCP_blocking(vc->fd); 83 83 84 84 WRW_Reserve(w, &vc->fd); … … 101 101 memset(fds, 0, sizeof fds); 102 102 103 TCP_linger(vc->fd, 0);103 (void)TCP_linger(vc->fd, 0); 104 104 fds[0].fd = vc->fd; 105 105 fds[0].events = POLLIN | POLLERR; 106 106 107 TCP_linger(sp->fd, 0);107 (void)TCP_linger(sp->fd, 0); 108 108 fds[1].fd = sp->fd; 109 109 fds[1].events = POLLIN | POLLERR; -
trunk/varnish-cache/bin/varnishd/cache_waiter_kqueue.c
r4183 r4576 199 199 break; 200 200 VTAILQ_REMOVE(&sesshead, sp, list); 201 TCP_linger(sp->fd, 0);201 (void)TCP_linger(sp->fd, 0); 202 202 vca_close_session(sp, "timeout"); 203 203 SES_Delete(sp); -
trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c
r4561 r4576 167 167 VTAILQ_REMOVE(&sesshead, sp, list); 168 168 vca_unpoll(fd); 169 TCP_linger(sp->fd, 0);169 (void)TCP_linger(sp->fd, 0); 170 170 vca_close_session(sp, "timeout"); 171 171 SES_Delete(sp); -
trunk/varnish-cache/bin/varnishd/mgt_child.c
r4575 r4576 207 207 * the listen queue to release us. 208 208 */ 209 TCP_nonblocking(ls->sock);209 (void)TCP_nonblocking(ls->sock); 210 210 (void)TCP_filter_http(ls->sock); 211 211 good++; -
trunk/varnish-cache/lib/libvarnish/tcp.c
r4572 r4576 197 197 198 198 /* Set the socket non-blocking */ 199 TCP_nonblocking(s);199 (void)TCP_nonblocking(s); 200 200 201 201 /* Attempt the connect */ … … 225 225 return (-1); 226 226 227 TCP_blocking(s);227 (void)TCP_blocking(s); 228 228 return (0); 229 229 } -
trunk/varnish-cache/lib/libvarnish/vss.c
r4556 r4576 251 251 } 252 252 if (nonblock) 253 TCP_nonblocking(sd);253 (void)TCP_nonblocking(sd); 254 254 i = connect(sd, &va->va_addr.sa, va->va_addrlen); 255 255 if (i == 0 || (nonblock && errno == EINPROGRESS))
