FAQ

On 2013/11/13 22:26:40, jpsugar wrote:
https://codereview.appspot.com/25940043/diff/20001/ssh/mux_test.go
File ssh/mux_test.go (right):

https://codereview.appspot.com/25940043/diff/20001/ssh/mux_test.go#newcode138
ssh/mux_test.go:138: // although the big write has completed, we can't be sure
I want there to be a better way to do this, but I don't see anything obvious.
Can anyone else?
I don't think there is a way to better do it. We want to check that a
goroutine is blocked, but Go has no way to inspect goroutines.

https://codereview.appspot.com/25940043/

--

---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Agl at Nov 14, 2013 at 6:27 pm
    https://codereview.appspot.com/25940043/diff/20001/ssh/mux_test.go
    File ssh/mux_test.go (right):

    https://codereview.appspot.com/25940043/diff/20001/ssh/mux_test.go#newcode138
    ssh/mux_test.go:138: // although the big write has completed, we can't
    be sure
    On 2013/11/13 22:26:41, jpsugar wrote:
    I want there to be a better way to do this, but I don't see anything obvious.
    Can anyone else?
    I also dislike this, obviously.

    We are expecting the Write to be blocked in window.reserve()? Can we add
    a "numWaiting" member to window which contains the number of goroutines
    waiting on it? Then we can add a waitTillBlockedForTesting() method? I'm
    hoping that would all work out since we're in the same package and can
    reach into the internals.

    https://codereview.appspot.com/25940043/

    --

    ---
    You received this message because you are subscribed to the Google Groups "golang-dev" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 14, '13 at 9:10a
activeNov 14, '13 at 6:27p
posts2
users2
websitegolang.org

2 users in discussion

Agl: 1 post Hanwen: 1 post

People

Translate

site design / logo © 2022 Grokbase