Skip to content

Commit

Permalink
fix wording (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
twenty2811 authored Oct 26, 2024
1 parent 9e1ccc7 commit c4a503a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internal/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct us_listen_socket_t {
unsigned int socket_ext_size;
};

/* Listen sockets are keps in their own list */
/* Listen sockets are kept in their own list */
void us_internal_socket_context_link_listen_socket(struct us_socket_context_t *context, struct us_listen_socket_t *s);
void us_internal_socket_context_unlink_listen_socket(struct us_socket_context_t *context, struct us_listen_socket_t *s);

Expand Down
4 changes: 2 additions & 2 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int us_socket_is_established(int ssl, struct us_socket_t *s) {
return us_internal_poll_type((struct us_poll_t *) s) != POLL_TYPE_SEMI_SOCKET;
}

/* Exactly the same as us_socket_close but does not emit on_close event */
/* Exactly the same as us_socket_close but does not check priority or emit on_close event */
struct us_socket_t *us_socket_close_connecting(int ssl, struct us_socket_t *s) {
if (!us_socket_is_closed(0, s)) {
us_internal_socket_context_unlink_socket(s->context, s);
Expand All @@ -112,7 +112,7 @@ struct us_socket_t *us_socket_close_connecting(int ssl, struct us_socket_t *s) {
return s;
}

/* Same as above but emits on_close */
/* Same as above but check priority and emits on_close */
struct us_socket_t *us_socket_close(int ssl, struct us_socket_t *s, int code, void *reason) {
if (!us_socket_is_closed(0, s)) {
if (s->low_prio_state == 1) {
Expand Down

0 comments on commit c4a503a

Please sign in to comment.