Skip to content
  • Fam Zheng's avatar
    6e99c631
    net/socket: Drop net_socket_can_send · 6e99c631
    Fam Zheng authored
    
    
    This callback is called by main loop before polling s->fd, if it returns
    false, the fd will not be polled in this iteration.
    
    This is redundant with checks inside read callback. After this patch,
    the data will be sent to peer when it arrives. If the device can't
    receive, it will be queued to incoming_queue, and when the device status
    changes, this queue will be flushed.
    
    If the peer is not ready, disable the read poll until send completes.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Message-id: 1433400324-7358-6-git-send-email-famz@redhat.com
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    6e99c631
    net/socket: Drop net_socket_can_send
    Fam Zheng authored
    
    
    This callback is called by main loop before polling s->fd, if it returns
    false, the fd will not be polled in this iteration.
    
    This is redundant with checks inside read callback. After this patch,
    the data will be sent to peer when it arrives. If the device can't
    receive, it will be queued to incoming_queue, and when the device status
    changes, this queue will be flushed.
    
    If the peer is not ready, disable the read poll until send completes.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Message-id: 1433400324-7358-6-git-send-email-famz@redhat.com
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Loading