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/07/06 05:42:40 UTC

[GitHub] [incubator-brpc] serverglen opened a new issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   实现Start(PortRange range, const ServerOptions *opt);
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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] wasphin commented on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   PR 与这个不是一回事吧?  看 PR 中只是添加了一个默认 `IP_ANY` 的接口, 而上面提到的功能本身就是支持的.


-- 
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] lorinlee commented on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   请问这个是用在什么场景的?


-- 
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] serverglen edited a comment on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

Posted by GitBox <gi...@apache.org>.
serverglen edited a comment on issue #1460:
URL: https://github.com/apache/incubator-brpc/issues/1460#issuecomment-874492747


   > 请问这个是用在什么场景的?�
   
   为了解决端口号被占用的问题,这样的话,不需要用户挨个尝试哪个端口可用。@lorinlee 


-- 
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] serverglen commented on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   > PR 与这个不是一回事吧? 看 PR 中只是添加了一个默认 `IP_ANY` 的接口, 而上面提到的功能本身就是支持的.
   
   #1461 
   
   目前 brpc server 的4个Start函数:
   
   - int Server::Start(const butil::EndPoint& endpoint, const ServerOptions* opt);
   - int Server::Start(const char* ip_port_str, const ServerOptions* opt);
   - int Server::Start(int port, const ServerOptions* opt);
   - int Server::Start(const char* ip_str, PortRange port_range, const ServerOptions *opt);
   
   最后一个支持PortRange,但是需要用户手工传一个 const char* ip_str参数
   
   这个PR 新增了如下函数:
   int Server::Start(PortRange port_range, const ServerOptions* opt);
   不需要传const char* ip_str参数,这种方式更加方便。
   @wasphin @lorinlee 
   


-- 
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] lorinlee commented on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   请问这个是用在什么场景的?


-- 
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] serverglen commented on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   > 请问这个是用在什么场景的?�
   
   为了解决端口号被占用的问题,这样的话,不需要用户按个尝试哪个端口可用。


-- 
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] serverglen commented on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

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


   > 请问这个是用在什么场景的?�
   
   为了解决端口号被占用的问题,这样的话,不需要用户按个尝试哪个端口可用。


-- 
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] serverglen edited a comment on issue #1460: Feature brpc server Start(PortRange range, const ServerOptions *opt)

Posted by GitBox <gi...@apache.org>.
serverglen edited a comment on issue #1460:
URL: https://github.com/apache/incubator-brpc/issues/1460#issuecomment-874492747


   > 请问这个是用在什么场景的?�
   
   为了解决端口号被占用的问题,这样的话,不需要用户挨个尝试哪个端口可用。@lorinlee 


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