• Mikio Hara's avatar
    runtime, internal/poll: report only critical event scanning error · 451a2eb0
    Mikio Hara authored
    This change makes the runtime-integrated network poller report only
    critical event scanning errors.
    
    In the previous attempt, CL 166497, we treated any combination of error
    events as event scanning errors and it caused false positives in event
    waiters because platform-dependent event notification mechanisms allow
    event originators to use various combination of events.
    
    To avoid false positives, this change makes the poller treat an
    individual error event as a critical event scanning error by the
    convention of event notification mechanism implementations.
    
    Updates #30624.
    Fixes #30817.
    Fixes #30840.
    
    Change-Id: I906c9e83864527ff73f636fd02bab854d54684ea
    Reviewed-on: https://go-review.googlesource.com/c/go/+/167777
    Run-TryBot: Mikio Hara <mikioh.public.networking@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    451a2eb0
read_test.go 1.07 KB