From a246161a545d813d61ba966f6e4a3bdf089876b8 Mon Sep 17 00:00:00 2001 From: Ciro Date: Mon, 6 Feb 2023 16:43:02 -0300 Subject: [PATCH] update uWS, fix ws upgrade with SSL, fix override write, fix typo in CAPI, add res_close --- pyproject.toml | 2 +- setup.py | 2 +- src/socketify/native.py | 2 +- src/socketify/socketify.py | 2 +- src/socketify/uWebSockets | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3a93d8b..3e99cb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "socketify" -version = "0.0.13" +version = "0.0.14" authors = [ { name="Ciro Spaciari", email="ciro.spaciari@gmail.com" }, ] diff --git a/setup.py b/setup.py index 3de878d..0a7e3e4 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="socketify", - version="0.0.13", + version="0.0.14", platforms=["any"], author="Ciro Spaciari", author_email="ciro.spaciari@gmail.com", diff --git a/src/socketify/native.py b/src/socketify/native.py index d3662c1..c1c16a7 100644 --- a/src/socketify/native.py +++ b/src/socketify/native.py @@ -215,7 +215,7 @@ size_t uws_res_get_proxied_remote_address_as_text(int ssl, uws_res_t *res, const bool uws_req_is_ancient(uws_req_t *res); bool uws_req_get_yield(uws_req_t *res); -void uws_req_set_field(uws_req_t *res, bool yield); +void uws_req_set_yield(uws_req_t *res, bool yield); size_t uws_req_get_url(uws_req_t *res, const char **dest); size_t uws_req_get_method(uws_req_t *res, const char **dest); size_t uws_req_get_case_sensitive_method(uws_req_t *res, const char **dest); diff --git a/src/socketify/socketify.py b/src/socketify/socketify.py index 86cc772..7ad2b54 100644 --- a/src/socketify/socketify.py +++ b/src/socketify/socketify.py @@ -2476,7 +2476,7 @@ class AppRequest: return self def set_yield(self, has_yield): - lib.uws_req_set_field(self.req, 1 if has_yield else 0) + lib.uws_req_set_yield(self.req, 1 if has_yield else 0) def get_yield(self): return bool(lib.uws_req_get_yield(self.req)) diff --git a/src/socketify/uWebSockets b/src/socketify/uWebSockets index 005998a..f5a4235 160000 --- a/src/socketify/uWebSockets +++ b/src/socketify/uWebSockets @@ -1 +1 @@ -Subproject commit 005998a763761509d6fda13fd7ae43ac0046ed61 +Subproject commit f5a4235d2751c07d3f834ad86f42c2cab59eded0