• inphi's avatar
    cannon: Prevent deadlock on pre-image reads · 877fcf88
    inphi authored
    Reading a FileChannel that does not have a writer blocks
    indefinitely. This occurs in cannon whenever the pre-image oracle
    server shuts down prematurely. We add a new io.ReadWriter that can
    detect when a FileChannel would otherwise block indefinitely.
    877fcf88
filepoller_test.go 2.09 KB