Skip to content

Conversation

@morningman
Copy link
Contributor

eg: -H "timeout:120"

TNetworkAddress master_addr = _exec_env->master_info()->network_address;

if (!http_req->header(HTTP_TIMEOUT).empty()) {
ctx->timeout_second = std::stoi(http_req->header(HTTP_TIMEOUT));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will thrown the std::invalid_argument exception which could not be catch in the out side.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a try catch block

@EmmyMiao87
Copy link
Contributor

LGTM

@imay imay merged commit 8e6814c into apache:master Aug 20, 2019
@imay imay mentioned this pull request Sep 26, 2019
swjtu-zhanglei added a commit to swjtu-zhanglei/incubator-doris that referenced this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants