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

Changeset 0d29e0cd in mainline


Ignore:
Timestamp:
2011-12-11T22:13:45Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
bbf159a
Parents:
9c3bba0
Message:

Fix infinite loop when send buffer is full.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/ucall.c

    r9c3bba0 r0d29e0cd  
    126126        while (size > 0) {
    127127                buf_free = conn->snd_buf_size - conn->snd_buf_used;
    128                 while (buf_free == 0 && !conn->reset)
     128                while (buf_free == 0 && !conn->reset) {
    129129                        tcp_tqueue_new_data(conn);
     130                        buf_free = conn->snd_buf_size - conn->snd_buf_used;
     131                }
    130132
    131133                if (conn->reset)
Note: See TracChangeset for help on using the changeset viewer.