comparison netio.c @ 1050:c2a50c9f509e fastopen

Add cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Feb 2015 23:15:23 +0800
parents 9cec9ed503bb
children fd3712d1ff7f
comparison
equal deleted inserted replaced
1049:01eea88963f3 1050:c2a50c9f509e
175 c->res_iter = c->res; 175 c->res_iter = c->res;
176 176
177 return c; 177 return c;
178 } 178 }
179 179
180 void remove_connect_pending() {
181 while (ses.conn_pending.first) {
182 struct dropbear_progress_connection *c = ses.conn_pending.first->item;
183 remove_connect(c, ses.conn_pending.first);
184 }
185 }
186
180 187
181 void set_connect_fds(fd_set *writefd) { 188 void set_connect_fds(fd_set *writefd) {
182 m_list_elem *iter; 189 m_list_elem *iter;
183 TRACE(("enter handle_connect_fds")) 190 TRACE(("enter handle_connect_fds"))
184 for (iter = ses.conn_pending.first; iter; iter = iter->next) { 191 for (iter = ses.conn_pending.first; iter; iter = iter->next) {