| 238 | } |
| 239 | |
| 240 | void Controller::ResetPods() { |
| 241 | // NOTE: Make the sequence of assignments same with the order that they're |
| 242 | // defined in header. Better for cpu cache and faster for lookup. |
| 243 | _span.reset(); |
| 244 | _flags = 0; |
| 245 | #ifndef BAIDU_INTERNAL |
| 246 | set_pb_bytes_to_base64(true); |
| 247 | #endif |
| 248 | _error_code = 0; |
| 249 | _session_local_data = NULL; |
| 250 | _server = NULL; |
| 251 | _oncancel_id = INVALID_BTHREAD_ID; |
| 252 | _auth_context = NULL; |
| 253 | _sampled_request = NULL; |
| 254 | _request_protocol = PROTOCOL_UNKNOWN; |
| 255 | _max_retry = UNSET_MAGIC_NUM; |
| 256 | _retry_policy = NULL; |
| 257 | _correlation_id = INVALID_BTHREAD_ID; |
| 258 | _connection_type = CONNECTION_TYPE_UNKNOWN; |
| 259 | _timeout_ms = UNSET_MAGIC_NUM; |
| 260 | _backup_request_ms = UNSET_MAGIC_NUM; |
| 261 | _backup_request_policy = NULL; |
| 262 | _connect_timeout_ms = UNSET_MAGIC_NUM; |
| 263 | _real_timeout_ms = UNSET_MAGIC_NUM; |
| 264 | _deadline_us = -1; |
| 265 | _timeout_id = 0; |
| 266 | _begin_time_us = 0; |
| 267 | _end_time_us = 0; |
| 268 | _tos = 0; |
| 269 | _preferred_index = -1; |
| 270 | _request_compress_type = COMPRESS_TYPE_NONE; |
| 271 | _response_compress_type = COMPRESS_TYPE_NONE; |
| 272 | _request_checksum_type = CHECKSUM_TYPE_NONE; |
| 273 | _response_checksum_type = CHECKSUM_TYPE_NONE; |
| 274 | _fail_limit = UNSET_MAGIC_NUM; |
| 275 | _pipelined_count = 0; |
| 276 | _inheritable.Reset(); |
| 277 | _pchan_sub_count = 0; |
| 278 | _response = NULL; |
| 279 | _done = NULL; |
| 280 | _sender = NULL; |
| 281 | _request_code = 0; |
| 282 | _single_server_id = INVALID_SOCKET_ID; |
| 283 | _unfinished_call = NULL; |
| 284 | _stream_creator = NULL; |
| 285 | _accessed = NULL; |
| 286 | _pack_request = NULL; |
| 287 | _method = NULL; |
| 288 | _auth = NULL; |
| 289 | _idl_names = idl_single_req_single_res; |
| 290 | _idl_result = IDL_VOID_RESULT; |
| 291 | _http_request = NULL; |
| 292 | _http_response = NULL; |
| 293 | _request_user_fields = NULL; |
| 294 | _response_user_fields = NULL; |
| 295 | _request_content_type = CONTENT_TYPE_PB; |
| 296 | _response_content_type = CONTENT_TYPE_PB; |
| 297 | _request_streams.clear(); |