| 886 | } |
| 887 | |
| 888 | static void close_cd(struct conn *c, struct conn_dir *cd) |
| 889 | { |
| 890 | cd->pending_shutdown = 1; |
| 891 | |
| 892 | if (cd->pending_send) |
| 893 | return; |
| 894 | |
| 895 | if (!(c->flags & CONN_F_PENDING_SHUTDOWN)) { |
| 896 | gettimeofday(&c->end_time, NULL); |
| 897 | c->flags |= CONN_F_PENDING_SHUTDOWN | CONN_F_END_TIME; |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | /* |
| 902 | * We're done with this buffer, add it back to our pool so the kernel is |
no outgoing calls
no test coverage detected