• Kirill Smelkov's avatar
    wcfs: Fix potential stuck in WatchLink.serve exit codepath · a6dd7806
    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.
    
    /reviewed-by @levin.zimmermann
    /reviewed-on !18
    a6dd7806
wcfs.go 82.3 KB