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

Changeset 9362cc2 in mainline for uspace/srv/net/tcp/conn.c


Ignore:
Timestamp:
2015-06-06T15:48:36Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
8499160
Parents:
7c15d6f
Message:

Need to set reset flag before changing state, which causes callback function to be called.

File:
1 edited

Legend:

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

    r7c15d6f r9362cc2  
    412412{
    413413        log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_reset()", conn->name);
     414        conn->reset = true;
    414415        tcp_conn_state_set(conn, st_closed);
    415         conn->reset = true;
    416416
    417417        tcp_conn_tw_timer_clear(conn);
Note: See TracChangeset for help on using the changeset viewer.