Changeset 309469de in mainline for uspace/srv/net/udp/service.c


Ignore:
Timestamp:
2015-05-09T19:28:32Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b99f6e2
Parents:
1d4b815
Message:

Need to clean up dangling resources when client closes session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/service.c

    r1d4b815 r309469de  
    493493{
    494494        udp_client_t client;
     495        size_t n;
    495496
    496497        /* Accept the connection */
     
    513514                        /* The other side has hung up */
    514515                        async_answer_0(callid, EOK);
    515                         return;
     516                        break;
    516517                }
    517518
     
    543544                }
    544545        }
     546
     547        log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_client_conn: terminated");
     548
     549        n = list_count(&client.cassoc);
     550        if (n != 0) {
     551                log_msg(LOG_DEFAULT, LVL_WARN, "udp_client_conn: "
     552                    "Client with %zu active associations closed session.", n);
     553                /* XXX Clean up */
     554        }
     555
     556        /* XXX Clean up client receive queue */
    545557}
    546558
Note: See TracChangeset for help on using the changeset viewer.