Changes in uspace/srv/net/tcp/sock.c [b243da3:f4a27304] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/sock.c
rb243da3 rf4a27304 882 882 tcp_sockdata_t *socket; 883 883 tcp_error_t trc; 884 int i;885 884 int rc; 886 885 … … 898 897 899 898 if (socket->conn != NULL) { 900 /* Close connection */901 899 trc = tcp_uc_close(socket->conn); 902 900 if (trc != TCP_EOK && trc != TCP_ENOTEXIST) { … … 907 905 } 908 906 909 if (socket->lconn != NULL) {910 /* Close listening connections */911 for (i = 0; i < socket->backlog; i++) {912 tcp_uc_set_cstate_cb(socket->lconn[i]->conn, NULL, NULL);913 trc = tcp_uc_close(socket->lconn[i]->conn);914 if (trc != TCP_EOK && trc != TCP_ENOTEXIST) {915 fibril_mutex_unlock(&socket->lock);916 async_answer_0(callid, EBADF);917 return;918 }919 920 free(socket->lconn[i]);921 socket->lconn[i] = NULL;922 }923 }924 925 907 /* Grab recv_buffer_lock because of CV wait in tcp_sock_recv_fibril() */ 926 908 fibril_mutex_lock(&socket->recv_buffer_lock);
Note:
See TracChangeset
for help on using the changeset viewer.