Skip to content

Commit c4a503a

Browse files
authored
fix wording (#226)
1 parent 9e1ccc7 commit c4a503a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/internal/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ struct us_listen_socket_t {
116116
unsigned int socket_ext_size;
117117
};
118118

119-
/* Listen sockets are keps in their own list */
119+
/* Listen sockets are kept in their own list */
120120
void us_internal_socket_context_link_listen_socket(struct us_socket_context_t *context, struct us_listen_socket_t *s);
121121
void us_internal_socket_context_unlink_listen_socket(struct us_socket_context_t *context, struct us_listen_socket_t *s);
122122

src/socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int us_socket_is_established(int ssl, struct us_socket_t *s) {
9393
return us_internal_poll_type((struct us_poll_t *) s) != POLL_TYPE_SEMI_SOCKET;
9494
}
9595

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

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

0 commit comments

Comments
 (0)