Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8499160 in mainline


Ignore:
Timestamp:
2015-06-06T16:23:27Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
8dc9b72
Parents:
9362cc2
Message:

Call tcp_conn_remove() whenever we change to closed state. Not only close, but delete connections when client terminates.

Location:
uspace/srv/net/tcp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/conn.c

    r9362cc2 r8499160  
    322322        assert(old_state != st_closed);
    323323        if (nstate == st_closed) {
     324                tcp_conn_remove(conn);
    324325                /* Drop one reference for now being in closed state */
    325326                tcp_conn_delref(conn);
     
    882883        if (conn->fin_is_acked) {
    883884                log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN acked -> Closed", conn->name);
    884                 tcp_conn_remove(conn);
    885885                tcp_conn_state_set(conn, st_closed);
    886886                return cp_done;
     
    12831283
    12841284        log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: TW Timeout -> Closed", conn->name);
    1285         tcp_conn_remove(conn);
    12861285        tcp_conn_state_set(conn, st_closed);
    12871286
  • uspace/srv/net/tcp/service.c

    r9362cc2 r8499160  
    875875                            tcp_cconn_t, lclient);
    876876                        tcp_uc_close(cconn->conn);
     877                        tcp_uc_delete(cconn->conn);
    877878                        tcp_cconn_destroy(cconn);
    878879                }
  • uspace/srv/net/tcp/ucall.c

    r9362cc2 r8499160  
    258258                log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - listen/syn_sent");
    259259                tcp_conn_reset(conn);
    260                 tcp_conn_remove(conn);
    261260                tcp_conn_unlock(conn);
    262261                return TCP_EOK;
Note: See TracChangeset for help on using the changeset viewer.