woailunhua commented on issue #3164:
URL: https://github.com/apache/brpc/issues/3164#issuecomment-3584605543

   查看controller详细状态 明显能看到错误码,以及连接超时这些状态,为什么这个情况下,callmethod不会返回错误状态呢?
   (gdb) p *(brpc::Controller*)controller_base
   $3 = {<google::protobuf::RpcController> = {<No data fields>}, static 
FLAGS_IGNORE_EOVERCROWDED = 1, static FLAGS_SECURITY_MODE = 2, static 
FLAGS_ADDED_CONCURRENCY = 4, static FLAGS_READ_PROGRESSIVELY = 8, 
     static FLAGS_PROGRESSIVE_READER = 16, static FLAGS_BACKUP_REQUEST = 32, 
static FLAGS_DESTROY_CID_IN_DONE = 128, static FLAGS_CLOSE_CONNECTION = 256, 
static FLAGS_LOG_ID = 512, 
     static FLAGS_REQUEST_CODE = 1024, static FLAGS_PB_BYTES_TO_BASE64 = 2048, 
static FLAGS_ALLOW_DONE_TO_RUN_IN_PLACE = 4096, static FLAGS_USED_BY_RPC = 
8192, static FLAGS_PB_JSONIFY_EMPTY_ARRAY = 65536, 
     static FLAGS_ENABLED_CIRCUIT_BREAKER = 131072, static 
FLAGS_ALWAYS_PRINT_PRIMITIVE_FIELDS = 262144, static FLAGS_HEALTH_CHECK_CALL = 
524288, static FLAGS_PB_SINGLE_REPEATED_TO_ARRAY = 1048576, 
     static FLAGS_MANAGE_HTTP_BODY_ON_ERROR = 2097152, _span = 0x0, _flags = 
10240, _error_code = 1008, 
     _error_text = "[E110]Fail to connect Socket{id=791 
addr=10.121.34.12:32829} (0x0x7f47ec0c4e60): Connection timed out 
[R1][E1008]Reached timeout=500ms @10.121.34.12:32829", _remote_side = {ip = {
         s_addr = 203585802}, port = 32829}, _local_side = {ip = {s_addr = 0}, 
port = 0}, _session_local_data = 0x0, _server = 0x0, _oncancel_id = {value = 
0}, _auth_context = 0x0, _mongo_session_data = {
       px = 0x0}, _sampled_request = 0x0, _request_protocol = 
brpc::PROTOCOL_HTTP, _max_retry = 3, _retry_policy = 0x0, _correlation_id = 
{value = 7696581394433}, _connection_type = brpc::CONNECTION_TYPE_POOLED, 
     _fail_limit = -123456789, _pipelined_count = 0, _timeout_ms = 500, 
_connect_timeout_ms = 400, _backup_request_ms = -1, _real_timeout_ms = 100, 
_deadline_us = 1764229948986363, _timeout_id = 8589936640, 
     _begin_time_us = 1764229948486363, _end_time_us = 1764229948486363, _tos = 
0, _preferred_index = 7, _request_compress_type = brpc::COMPRESS_TYPE_NONE, 
_response_compress_type = brpc::COMPRESS_TYPE_NONE, 
     _inheritable = {log_id = 0, request_id = ""}, _pchan_sub_count = 0, 
_response = 0x0, _done = 0x0, _sender = 0x0, _request_code = 0, 
_single_server_id = 0, _lb = {px = 0x0}, _tmp_completion_info = {id = {
         value = 7696581394433}, responded = false}, _current_call = {nretry = 
1, need_feedback = false, enable_circuit_breaker = false, 
touched_by_stream_creator = false, peer_id = 0, 
       begin_time_us = 1764229948886448, sending_sock = 
std::unique_ptr<brpc::Socket> = {get() = 0x7f48040c6b40}, stream_user_data = 
0x0}, _unfinished_call = 0x0, _accessed = 0x0, _stream_creator = 0x0, 
     
       _pack_request = 0x7f488a5e5340 
<brpc::policy::PackHttpRequest(butil::IOBuf*, brpc::SocketMessage**, unsigned 
long, google::protobuf::MethodDescriptor const*, brpc::Controller*, 
butil::IOBuf const&, brpc::Authenticator const*)>, 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to