zyearn commented on issue #715: http2 / grpc问题 URL: https://github.com/apache/incubator-brpc/issues/715#issuecomment-512657369 > 2\. 设这两个参数也没用的原因,是因为AppendAndDestroySelf函数sctx->Init(ctx, id);这里, 在H2Context构造的时候会把默认值用FLAGS_h2_client_stream_window_size以及FLAGS_h2_client_max_frame_size替换,所以还是用的这两个参数 > 是不是可以在建立连接的时候,先发settings帧,获取server端的配置,再发请求? sepc说可以先发请求以减少延迟 > 或者在因为本地判定remote_window_size不够这个原因导致请求失败时,不要关闭socket,(因为其实setting帧已经发出去了,也已经收到server回包成功解析到server配置了),或者把当前socket已成功解析到的remote_settings缓存一下,作为后面新建socket的初始值(而不是用写死或gflag配置的默认值)?这样至少保证下一个请求是正常的。 现在当某一个包比server remote window还大时,目前的做法是直接失败了。可以改成先发一个包,等对方的window_update发过来以后,再继续发下一个包,这个目前是个TODO
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
