Changeset 4c14b88 in mainline for uspace/srv/net/tcp/ucall.c
- Timestamp:
- 2013-12-31T07:57:14Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b973dc
- Parents:
- 6297465 (diff), 208b5f5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/ucall.c
r6297465 r4c14b88 83 83 84 84 if (oflags == tcp_open_nonblock) { 85 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_open -> %p", nconn); 85 86 *conn = nconn; 86 87 return TCP_EOK; … … 234 235 tcp_error_t tcp_uc_close(tcp_conn_t *conn) 235 236 { 236 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_uc_close()", conn->name); 237 log_msg(LOG_DEFAULT, LVL_DEBUG, "%s: tcp_uc_close(%p)", conn->name, 238 conn); 237 239 238 240 fibril_mutex_lock(&conn->lock); 239 241 240 242 if (conn->cstate == st_closed) { 243 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - ENOTEXIST"); 241 244 fibril_mutex_unlock(&conn->lock); 242 245 return TCP_ENOTEXIST; 243 246 } 244 247 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 245 255 if (conn->snd_buf_fin) { 256 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - ECLOSING"); 246 257 fibril_mutex_unlock(&conn->lock); 247 258 return TCP_ECLOSING; 248 259 } 249 260 261 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_close - set snd_buf_fin"); 250 262 conn->snd_buf_fin = true; 251 263 tcp_tqueue_new_data(conn);
Note:
See TracChangeset
for help on using the changeset viewer.