Changeset 3e2291a9 in mainline for uspace/srv/net/tcp/conn.c
- Timestamp:
- 2017-09-17T23:37:43Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 797dc79e
- Parents:
- 6969eea3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
r6969eea3 r3e2291a9 100 100 void tcp_conns_fini(void) 101 101 { 102 assert(list_empty(&conn_list)); 103 102 104 amap_destroy(amap); 103 105 amap = NULL; 104 105 assert(list_empty(&conn_list));106 106 } 107 107 … … 458 458 459 459 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_conn_reset()", conn->name); 460 461 if (conn->cstate == st_closed) 462 return; 463 460 464 conn->reset = true; 461 465 tcp_conn_state_set(conn, st_closed); … … 910 914 return cp_done; 911 915 912 /* TODO */ 916 if (conn->fin_is_acked) { 917 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: FIN acked -> Time-Wait", 918 conn->name); 919 tcp_conn_state_set(conn, st_time_wait); 920 } 921 913 922 return cp_continue; 914 923 } … … 1107 1116 log_msg(LOG_DEFAULT, LVL_DEBUG, " - FIN found in segment."); 1108 1117 1118 conn->rcv_nxt++; 1119 conn->rcv_wnd--; 1120 1109 1121 /* Send ACK */ 1110 1122 tcp_tqueue_ctrl_seg(conn, CTL_ACK); 1111 1112 conn->rcv_nxt++;1113 conn->rcv_wnd--;1114 1123 1115 1124 /* Change connection state */
Note:
See TracChangeset
for help on using the changeset viewer.