Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 258d77e in mainline


Ignore:
Timestamp:
2017-08-23T19:10:44Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
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.