Use libevent for meta socket input/output buffering.
This commit is contained in:
parent
59108e4e4f
commit
fbf305c09d
12 changed files with 177 additions and 269 deletions
|
|
@ -121,8 +121,6 @@ void terminate_connection(connection_t *c, bool report) {
|
|||
if(c->socket)
|
||||
closesocket(c->socket);
|
||||
|
||||
event_del(&c->ev);
|
||||
|
||||
if(c->edge) {
|
||||
if(report && !tunnelserver)
|
||||
send_del_edge(broadcast, c->edge);
|
||||
|
|
@ -146,12 +144,6 @@ void terminate_connection(connection_t *c, bool report) {
|
|||
}
|
||||
}
|
||||
|
||||
free(c->outbuf);
|
||||
c->outbuf = NULL;
|
||||
c->outbuflen = 0;
|
||||
c->outbufsize = 0;
|
||||
c->outbufstart = 0;
|
||||
|
||||
/* Check if this was our outgoing connection */
|
||||
|
||||
if(c->outgoing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue