testing-grpc icon indicating copy to clipboard operation
testing-grpc copied to clipboard

added server side streaming

Open Code-Hex opened this issue 5 years ago • 2 comments

Code-Hex avatar Nov 04 '20 14:11 Code-Hex

Client log (receives interval 10s)

duration [1s]: 10s
11:19PM DBG TagRPC FailFast=true FullMethodName=/testing.Stream/ServerStream
11:19PM DBG stats Begin BeginTime=2020-11-04T23:19:08+09:00 FailFast=true IsClient=true
11:19PM DBG stats OutHeader Compression= FullMethod=/testing.Stream/ServerStream Header={"user-agent":["grpc-go/1.31.0"]} IsClient=true LocalAddr=127.0.0.1:57703 RemoteAddr=127.0.0.1:4000
11:19PM DBG stats OutPayload Data="\n\x0310s" IsClient=true Length=5 Payload={"duration":"10s"} SentTime=2020-11-04T23:19:08+09:00 WireLength=10
11:19PM DBG stats InHeader Compression= FullMethod= Header={"content-type":["application/grpc"]} IsClient=true LocalAddr=null RemoteAddr=null WireLength=2
11:19PM DBG stats InPayload Data="\n\vresponse: 0" IsClient=true Length=13 Payload={"msg":"response: 0"} RecvTime=2020-11-04T23:19:18+09:00 WireLength=13
11:19PM INF success response={"msg":"response: 0"}
11:19PM DBG stats InPayload Data="\n\vresponse: 1" IsClient=true Length=13 Payload={"msg":"response: 1"} RecvTime=2020-11-04T23:19:28+09:00 WireLength=13
11:19PM INF success response={"msg":"response: 1"}
11:19PM DBG stats InPayload Data="\n\vresponse: 2" IsClient=true Length=13 Payload={"msg":"response: 2"} RecvTime=2020-11-04T23:19:38+09:00 WireLength=13
11:19PM INF success response={"msg":"response: 2"}
11:19PM DBG stats InPayload Data="\n\vresponse: 3" IsClient=true Length=13 Payload={"msg":"response: 3"} RecvTime=2020-11-04T23:19:48+09:00 WireLength=13
11:19PM INF success response={"msg":"response: 3"}
11:19PM DBG stats InPayload Data="\n\vresponse: 4" IsClient=true Length=13 Payload={"msg":"response: 4"} RecvTime=2020-11-04T23:19:58+09:00 WireLength=13
11:19PM INF success response={"msg":"response: 4"}
11:20PM DBG stats InPayload Data="\n\vresponse: 5" IsClient=true Length=13 Payload={"msg":"response: 5"} RecvTime=2020-11-04T23:20:08+09:00 WireLength=13
11:20PM INF success response={"msg":"response: 5"}
11:20PM DBG stats InPayload Data="\n\vresponse: 6" IsClient=true Length=13 Payload={"msg":"response: 6"} RecvTime=2020-11-04T23:20:18+09:00 WireLength=13
11:20PM INF success response={"msg":"response: 6"}
11:20PM DBG stats InPayload Data="\n\vresponse: 7" IsClient=true Length=13 Payload={"msg":"response: 7"} RecvTime=2020-11-04T23:20:28+09:00 WireLength=13
11:20PM INF success response={"msg":"response: 7"}
11:20PM DBG stats InPayload Data="\n\vresponse: 8" IsClient=true Length=13 Payload={"msg":"response: 8"} RecvTime=2020-11-04T23:20:38+09:00 WireLength=13
11:20PM INF success response={"msg":"response: 8"}
11:20PM DBG stats InPayload Data="\n\vresponse: 9" IsClient=true Length=13 Payload={"msg":"response: 9"} RecvTime=2020-11-04T23:20:48+09:00 WireLength=13
11:20PM INF success response={"msg":"response: 9"}
11:20PM DBG stats End BeginTime=2020-11-04T23:19:08+09:00 EndTime=2020-11-04T23:20:48+09:00 IsClient=true Trailer={} details=null

Code-Hex avatar Nov 04 '20 14:11 Code-Hex

Server Side Log

11:19PM DBG TagRPC FailFast=false FullMethodName=/testing.Stream/ServerStream
11:19PM DBG stats InHeader Compression= FullMethod=/testing.Stream/ServerStream Header={":authority":[":4000"],"content-type":["application/grpc"],"user-agent":["grpc-go/1.31.0"]} IsClient=false LocalAddr=127.0.0.1:4000 RemoteAddr=127.0.0.1:57703 WireLength=7
11:19PM DBG stats Begin BeginTime=2020-11-04T23:19:08+09:00 FailFast=false IsClient=false
11:19PM DBG stats InPayload Data="\n\x0310s" IsClient=false Length=5 Payload={"duration":"10s"} RecvTime=2020-11-04T23:19:08+09:00 WireLength=5
11:19PM DBG stats OutHeader Compression= FullMethod= Header={} IsClient=false LocalAddr=null RemoteAddr=null
11:19PM DBG stats OutPayload Data="\n\vresponse: 0" IsClient=false Length=13 Payload={"msg":"response: 0"} SentTime=2020-11-04T23:19:18+09:00 WireLength=18
11:19PM DBG stats OutPayload Data="\n\vresponse: 1" IsClient=false Length=13 Payload={"msg":"response: 1"} SentTime=2020-11-04T23:19:28+09:00 WireLength=18
11:19PM DBG stats OutPayload Data="\n\vresponse: 2" IsClient=false Length=13 Payload={"msg":"response: 2"} SentTime=2020-11-04T23:19:38+09:00 WireLength=18
11:19PM DBG stats OutPayload Data="\n\vresponse: 3" IsClient=false Length=13 Payload={"msg":"response: 3"} SentTime=2020-11-04T23:19:48+09:00 WireLength=18
11:19PM DBG stats OutPayload Data="\n\vresponse: 4" IsClient=false Length=13 Payload={"msg":"response: 4"} SentTime=2020-11-04T23:19:58+09:00 WireLength=18
11:20PM DBG stats OutPayload Data="\n\vresponse: 5" IsClient=false Length=13 Payload={"msg":"response: 5"} SentTime=2020-11-04T23:20:08+09:00 WireLength=18
11:20PM DBG stats OutPayload Data="\n\vresponse: 6" IsClient=false Length=13 Payload={"msg":"response: 6"} SentTime=2020-11-04T23:20:18+09:00 WireLength=18
11:20PM DBG stats OutPayload Data="\n\vresponse: 7" IsClient=false Length=13 Payload={"msg":"response: 7"} SentTime=2020-11-04T23:20:28+09:00 WireLength=18
11:20PM DBG stats OutPayload Data="\n\vresponse: 8" IsClient=false Length=13 Payload={"msg":"response: 8"} SentTime=2020-11-04T23:20:38+09:00 WireLength=18
11:20PM DBG stats OutPayload Data="\n\vresponse: 9" IsClient=false Length=13 Payload={"msg":"response: 9"} SentTime=2020-11-04T23:20:48+09:00 WireLength=18
11:20PM DBG stats OutTrailer IsClient=false Trailer={} WireLength=0
11:20PM DBG stats End BeginTime=2020-11-04T23:19:08+09:00 EndTime=2020-11-04T23:20:48+09:00 IsClient=false Trailer=null details=null

Code-Hex avatar Nov 04 '20 14:11 Code-Hex