Ignore:
File:
1 edited

Legend:

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

    rb243da3 rc0f3460  
    8383
    8484        if (oflags == tcp_open_nonblock) {
    85                 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_open -> %p", nconn);
    8685                *conn = nconn;
    8786                return TCP_EOK;
     
    235234tcp_error_t tcp_uc_close(tcp_conn_t *conn)
    236235{
    237         log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_uc_close(%p)", conn->name,
    238             conn);
     236        log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_uc_close()", conn->name);
    239237
    240238        fibril_mutex_lock(&conn->lock);
    241239
    242240        if (conn->cstate == st_closed) {
    243                 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - ENOTEXIST");
    244241                fibril_mutex_unlock(&conn->lock);
    245242                return TCP_ENOTEXIST;
    246243        }
    247244
    248         if (conn->cstate == st_listen || conn->cstate == st_syn_sent) {
    249                 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - listen/syn_sent");
    250                 tcp_conn_reset(conn);
    251                 tcp_conn_remove(conn);
    252                 return TCP_EOK;
    253         }
    254 
    255245        if (conn->snd_buf_fin) {
    256                 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - ECLOSING");
    257246                fibril_mutex_unlock(&conn->lock);
    258247                return TCP_ECLOSING;
    259248        }
    260249
    261         log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - set snd_buf_fin");
    262250        conn->snd_buf_fin = true;
    263251        tcp_tqueue_new_data(conn);
Note: See TracChangeset for help on using the changeset viewer.