Changeset 258d77e in mainline


Ignore:
Timestamp:
2017-08-23T19:10:44Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9621c7d
Parents:
58e8646
Message:

After getting to the end of data (FIN), tcp_conn_recv[_wait] should return 0 bytes instead of an error.

File:
1 edited

Legend:

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

    r58e8646 r258d77e  
    705705                        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_impl() - EAGAIN");
    706706                        return EAGAIN;
     707                case TCP_ECLOSING:
     708                        *nrecv = 0;
     709                        return EOK;
    707710                default:
    708711                        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_impl() - trc=%d", rc);
Note: See TracChangeset for help on using the changeset viewer.