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 2020/02/24 13:02:11 UTC

[GitHub] [incubator-brpc] pklim101 removed a comment on issue #131: channel和网络连接之间的关系

pklim101 removed a comment on issue #131: channel和网络连接之间的关系
URL: https://github.com/apache/incubator-brpc/issues/131#issuecomment-590202789
 
 
   为什么这个例子我改成请求非brpc的server的服务(比如openresty)的时候,总是提示超时呢:[E1008]Reached timeout=5000ms @127.0.0.18888.    但是openresty的access.log状态码是200.
   
   82      example::HttpRequest request;
    83     example::HttpResponse response;
    84     //example::HttpService_Stub stub(&channel);
    85     cntl.set_log_id(100);  // set by user
    86     cntl.http_request().SetHeader("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:73.0) Gecko/20100101 Firefox/73.1");
    87     cntl.http_request().uri().SetQuery("tid", "100");
    88     cntl.http_request().uri().SetQuery("id", "2");
    89     cntl.http_request().uri().SetQuery("tag", "xxx");
    90     //stub.Echo(&cntl, &request,&response,NULL);
    91     channel.CallMethod(NULL, &cntl, &request, &response, NULL);`
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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