Skip to content
  • Jean Boussier's avatar
    bcc90510
    BasicSocket#recv* return `nil` rather than an empty packet · bcc90510
    Jean Boussier authored
    [Bug #19012]
    
    man recvmsg(2) states:
    
    > Return Value
    > These calls return the number of bytes received, or -1 if an error occurred.
    > The return value will be 0 when the peer has performed an orderly shutdown.
    
    Not too sure how one is supposed to make the difference between a packet of
    size 0 and a closed connection.
    bcc90510
    BasicSocket#recv* return `nil` rather than an empty packet
    Jean Boussier authored
    [Bug #19012]
    
    man recvmsg(2) states:
    
    > Return Value
    > These calls return the number of bytes received, or -1 if an error occurred.
    > The return value will be 0 when the peer has performed an orderly shutdown.
    
    Not too sure how one is supposed to make the difference between a packet of
    size 0 and a closed connection.
Loading