@openziti/ziti-sdk-nodejs 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ziti_listen.c +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openziti/ziti-sdk-nodejs",
|
|
3
3
|
"description": "A NodeJS-based SDK for delivering secure applications over a Ziti Network",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.3",
|
|
5
5
|
"main": "./lib/ziti",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run build:init; npm run build:c-sdk; npm install --build-from-source --clang=1",
|
package/src/ziti_listen.c
CHANGED
|
@@ -128,7 +128,7 @@ static void CallJs_on_listen_client_data(napi_env env, napi_value js_cb, void* c
|
|
|
128
128
|
|
|
129
129
|
static ssize_t on_listen_client_data(ziti_connection client, const uint8_t *data, ssize_t len) {
|
|
130
130
|
|
|
131
|
-
ZITI_NODEJS_LOG(DEBUG, "on_listen_client_data: client: %p, data: %p, len: %
|
|
131
|
+
ZITI_NODEJS_LOG(DEBUG, "on_listen_client_data: client: %p, data: %p, len: %zd", client, data, len);
|
|
132
132
|
|
|
133
133
|
ListenAddonData* addon_data = (ListenAddonData*) ziti_conn_data(client);
|
|
134
134
|
|
|
@@ -145,7 +145,7 @@ static ssize_t on_listen_client_data(ziti_connection client, const uint8_t *data
|
|
|
145
145
|
if (len > 0) {
|
|
146
146
|
/* NOP */
|
|
147
147
|
}
|
|
148
|
-
else if (len == ZITI_EOF) {
|
|
148
|
+
else if ((len == ZITI_EOF) || (len == ZITI_CONN_CLOSED)) {
|
|
149
149
|
ZITI_NODEJS_LOG(DEBUG, "on_listen_client_data: client disconnected");
|
|
150
150
|
ziti_close_write(client);
|
|
151
151
|
}
|