mirror of https://github.com/grpc/grpc-go.git
remove debugging info
This commit is contained in:
parent
6205cb25ab
commit
48068bbe62
|
|
@ -91,7 +91,7 @@ var raceMode bool // set by race_test.go in race mode
|
||||||
|
|
||||||
type testServer struct {
|
type testServer struct {
|
||||||
security string // indicate the authentication protocol used by this server.
|
security string // indicate the authentication protocol used by this server.
|
||||||
earlyFail bool // whether to error out the execution of a service handler.
|
earlyFail bool // whether to error out the execution of a service handler prematurely.
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *testServer) EmptyCall(ctx context.Context, in *testpb.Empty) (*testpb.Empty, error) {
|
func (s *testServer) EmptyCall(ctx context.Context, in *testpb.Empty) (*testpb.Empty, error) {
|
||||||
|
|
|
||||||
|
|
@ -600,11 +600,7 @@ func (t *http2Client) Write(s *Stream, data []byte, opts *Options) error {
|
||||||
}
|
}
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
if s.state != streamDone {
|
if s.state != streamDone {
|
||||||
//if s.state == streamReadDone {
|
|
||||||
// s.state = streamDone
|
|
||||||
//} else {
|
|
||||||
s.state = streamWriteDone
|
s.state = streamWriteDone
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -680,13 +676,6 @@ func (t *http2Client) handleData(f *http2.DataFrame) {
|
||||||
if f.FrameHeader.Flags.Has(http2.FlagDataEndStream) {
|
if f.FrameHeader.Flags.Has(http2.FlagDataEndStream) {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
s.state = streamDone
|
s.state = streamDone
|
||||||
/*
|
|
||||||
if s.state == streamWriteDone {
|
|
||||||
s.state = streamDone
|
|
||||||
} else {
|
|
||||||
s.state = streamReadDone
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
s.statusCode = codes.Internal
|
s.statusCode = codes.Internal
|
||||||
s.statusDesc = "server closed the stream without sending trailers"
|
s.statusDesc = "server closed the stream without sending trailers"
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,6 @@ type streamState uint8
|
||||||
const (
|
const (
|
||||||
streamActive streamState = iota
|
streamActive streamState = iota
|
||||||
streamWriteDone // EndStream sent
|
streamWriteDone // EndStream sent
|
||||||
streamReadDone // EndStream received
|
|
||||||
streamDone // sendDone and recvDone or RSTStreamFrame is sent or received.
|
streamDone // sendDone and recvDone or RSTStreamFrame is sent or received.
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue