You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/09/15 03:33:08 UTC

[GitHub] [incubator-brpc] DavidLiuXh opened a new issue #1558: 使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?

DavidLiuXh opened a new issue #1558:
URL: https://github.com/apache/incubator-brpc/issues/1558


   请问使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] cdjingit commented on issue #1558: 使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?

Posted by GitBox <gi...@apache.org>.
cdjingit commented on issue #1558:
URL: https://github.com/apache/incubator-brpc/issues/1558#issuecomment-919969951


   目的是什么?brpc关于tcp连接的管理对于用户来说是透明的,用户不需要关心tcp连接的建立和关闭,一般如果长时间没有数据发送,框架会回收连接。


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] gydong commented on issue #1558: 使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1558:
URL: https://github.com/apache/incubator-brpc/issues/1558#issuecomment-920509183


   `set_connection_type(CONNECTION_TYPE_SHORT)`  可能接近你想要达到的效果,可以试试


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] DavidLiuXh commented on issue #1558: 使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?

Posted by GitBox <gi...@apache.org>.
DavidLiuXh commented on issue #1558:
URL: https://github.com/apache/incubator-brpc/issues/1558#issuecomment-920724777


   @wwbmmm 所以现在想问问有没有什么方法主动断开连接


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] wwbmmm commented on issue #1558: 使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?

Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #1558:
URL: https://github.com/apache/incubator-brpc/issues/1558#issuecomment-920716045


   brpc的http server实现不是很标准,即使请求中含有"Connection: close",也不会主动断开和客户端的连接


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] DavidLiuXh commented on issue #1558: 使用brpc处理http请求时,如何在发送response后主动Close客户端的连接?

Posted by GitBox <gi...@apache.org>.
DavidLiuXh commented on issue #1558:
URL: https://github.com/apache/incubator-brpc/issues/1558#issuecomment-920687737


   @cdjingit @gydong 感谢两位的回复。
   
   我的使用场景里,发送http请求的客户端没有使用brpc框架。服务端关闭客户端端连接,主要是为了响应请求中的"Connection: close".


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org