Changeset 7ce8f88 in mainline
- Timestamp:
- 2017-12-20T22:12:55Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8610c2c
- Parents:
- 95ab29b
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:03:44)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:12:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/service.c
r95ab29b r7ce8f88 661 661 tcp_cconn_t *cconn; 662 662 int rc; 663 tcp_error_t trc; 663 664 664 665 rc = tcp_cconn_get(client, conn_id, &cconn); … … 666 667 return rc; 667 668 668 rc = tcp_uc_send(cconn->conn, data, size, 0);669 if ( rc !=EOK)670 return rc;669 trc = tcp_uc_send(cconn->conn, data, size, 0); 670 if (trc != TCP_EOK) 671 return EIO; 671 672 672 673 return EOK; … … 691 692 xflags_t xflags; 692 693 int rc; 694 tcp_error_t trc; 693 695 694 696 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_impl()"); … … 700 702 } 701 703 702 rc = tcp_uc_receive(cconn->conn, data, size, nrecv, &xflags);703 if ( rc !=EOK) {704 switch ( rc) {704 trc = tcp_uc_receive(cconn->conn, data, size, nrecv, &xflags); 705 if (trc != TCP_EOK) { 706 switch (trc) { 705 707 case TCP_EAGAIN: 706 708 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_impl() - EAGAIN"); … … 710 712 return EOK; 711 713 default: 712 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_impl() - trc=%d", rc);714 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_impl() - trc=%d", trc); 713 715 return EIO; 714 716 }
Note:
See TracChangeset
for help on using the changeset viewer.