• David du Colombier's avatar
    net: handle hangup in read on Plan 9 · 26281446
    David du Colombier authored
    On Plan 9, when closing a TCP connection, we
    write the "hangup" string to the TCP ctl file.
    
    The next read on the TCP data file will return
    an error like "/net/tcp/18/data: Hangup", while
    in Go, we expect to return io.EOF.
    
    This change makes Read to return io.EOF when
    an error string containing "Hangup" is returned.
    
    Change-Id: I3f71ed543704190b441cac4787488a77f46d88a1
    Reviewed-on: https://go-review.googlesource.com/22149Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: David du Colombier <0intro@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    26281446
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...