Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/aws/http/connection_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ struct aws_http_connection_manager *aws_http_connection_manager_new(
* Requests a connection from the manager. The requester is notified of
* an acquired connection (or failure to acquire) via the supplied callback.
*
* For HTTP/2 connections, the callback will not fire until the server's settings have been received.
*
* Once a connection has been successfully acquired from the manager it
* must be released back (via aws_http_connection_manager_release_connection)
* at some point. Failure to do so will cause a resource leak.
Expand Down
3 changes: 3 additions & 0 deletions include/aws/http/private/connection_manager_system_vtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ typedef bool(aws_http_connection_is_connection_available_fn)(const struct aws_ht
typedef bool(aws_http_connection_manager_is_callers_thread_fn)(struct aws_channel *channel);
typedef struct aws_channel *(aws_http_connection_manager_connection_get_channel_fn)(
struct aws_http_connection *connection);
typedef enum aws_http_version(aws_http_connection_manager_connection_get_version_fn)(
const struct aws_http_connection *connection);

struct aws_http_connection_manager_system_vtable {
/*
Expand All @@ -31,6 +33,7 @@ struct aws_http_connection_manager_system_vtable {
aws_io_clock_fn *get_monotonic_time;
aws_http_connection_manager_is_callers_thread_fn *is_callers_thread;
aws_http_connection_manager_connection_get_channel_fn *connection_get_channel;
aws_http_connection_manager_connection_get_version_fn *connection_get_version;
};

AWS_HTTP_API
Expand Down
Loading