-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Bucket Support #136
Conversation
More WIP changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix-n-ship!
/* Connection manager shared by all VIP connections. */ | ||
struct aws_http_connection_manager *http_connection_manager; | ||
/* Callback for when the reference count of this endpoint hits zero. */ | ||
aws_s3_endpoint_ref_zero_fn *ref_count_zero_callback; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just call this a destructor, I know it's nomenclature that aws_refcount uses, but this is weird to read
|
||
void (*schedule_process_work_synced)(struct aws_s3_client *client); | ||
|
||
void (*process_work)(struct aws_s3_client *client); | ||
|
||
void ( | ||
*setup_vip_connection_retry_token)(struct aws_s3_client *client, struct aws_s3_vip_connection *vip_connection); | ||
bool (*endpoint_ref_count_zero)(struct aws_s3_endpoint *endpoint); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Destructor!
source/s3_endpoint.c
Outdated
static const uint16_t s_http_port = 80; | ||
static const uint16_t s_https_port = 443; | ||
|
||
static size_t s_dns_host_address_ttl_seconds = 5 * 60; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be on the options struct, and default values like this should be centralized (so that when we hook all of this up to ENV vars and config APIs it's easy to find)
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.