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


Ignore:
Timestamp:
2015-06-06T15:48:36Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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/service.c

    r7c15d6f r9362cc2  
    9494
    9595        if (old_state != st_closed && nstate == st_closed && conn->reset) {
     96                log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_service_cstate_change: "
     97                    "Connection reset");
    9698                /* Connection reset */
    9799                tcp_ev_conn_reset(cconn);
     100        } else {
     101                log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_service_cstate_change: "
     102                    "old_state=%d nstate=%d conn->reset=%d",
     103                    old_state, nstate, conn->reset);
    98104        }
    99105
Note: See TracChangeset for help on using the changeset viewer.