• Kirill Smelkov's avatar
    wcfs: Fix potential stuck in WatchLink.serve exit codepath · 4136e9e7
    Kirill Smelkov authored
    When serve is completing and going to exit, it sends an error message to
    the client without any timeout. So if the client is not reading from the
    channel, wcfs will get stuck waiting for the message to be consumed.
    
    -> Fix that by trying to send that last error only during 1 second and
       ignoring errors if any
    
    Test is, hopefully, TODO.
    4136e9e7
wcfs.go 82.3 KB