• Avery Pennarun's avatar
    server.py: don't send partial hostwatch lists. · a32305a2
    Avery Pennarun authored
    If hostwatch has a lot of stuff to say all at once, it would come in more
    than one recv() packet, and server.py would send each packet individually as
    a CMD_HOST_LIST message.  Unfortunately, client.py (rightly) expects each
    CMD_HOST_LIST message to be complete, ie. a correct sequence of rows.
    
    So now server.py makes sure of this.  If there's a leftover bit (ie. an
    unterminated line), it saves it for later.
    
    Bug reported by user "Duke" on the mailing list.
    a32305a2
server.py 4.8 KB