Changeset 0d520a2 in mainline for uspace/srv/net/tcp/sock.c


Ignore:
Timestamp:
2012-04-20T09:48:56Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50b581d, d37d500e
Parents:
606c369
Message:

tcp_sock_connection() and udp_sock_connection() need to clean up when exiting.

File:
1 edited

Legend:

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

    r606c369 r0d520a2  
    8989        socket = (tcp_sockdata_t *)sock_core->specific_data;
    9090        (void)socket;
     91
     92        /* XXX We need to initiate connection cleanup here */
    9193}
    9294
     
    835837                }
    836838        }
     839
     840        /* Clean up */
     841        log_msg(LVL_DEBUG, "tcp_sock_connection: Clean up");
     842        async_hangup(client.sess);
     843        socket_cores_release(NULL, &client.sockets, &gsock, tcp_free_sock_data);
    837844}
    838845
Note: See TracChangeset for help on using the changeset viewer.