Charles Chu

Results 6 issues of Charles Chu

centos 7 x64,使用 graftcp 运行 wget 都可以正常使用,curl ip 地址可以,curl 带域名不行,会卡住 会无线循环进入 trace_syscall_entering 约 1 秒 1 次,pinfp->csn 值为 7,SYS_poll 可能是什么原因?

[{"type":2,"invocationId":"11","item":{"firstNewMessageIndex":null,"suggestedResponses":null,"conversationId":"xxxxxx","requestId":"xxxxxx","telemetry":{"metrics":null,"startTime":"2023-02-17T08:22:07.5418739Z"},"result":{"value":"InvalidSession","message":"Conversation 'xxxxxx' doesn't exist or has expired. Conversations expire after 06:00:00 minutes.","serviceVersion":"20230216.117"}}},{"type":3,"invocationId":"11"}] The sendMessage will never return

bug

maybe use #[napi(inspect)] for nodejs.util.inspect.custom

Test Case: **File: lib.rs** ``` rust #![deny(clippy::all)] #[macro_use] extern crate napi_derive; use napi::bindgen_prelude::*; #[napi] pub struct Test {} #[napi] impl Test { #[napi(constructor)] pub fn new() -> Result { Ok(Self...

HarmonyOS uses a napi design similar to nodejs. If we can migrate the existing napi-rs project, we can reduce the development effort a lot.

https://github.com/moznion/proxy-protocol-js/blob/25261bbc1678425baee088f68192b908acb51d24/src/v2/V2ProxyProtocol.ts#L167 ``` javascript return new V2ProxyProtocol( command, transportProtocol, addressFamily.getFactoryMethod()(input.slice(16)), input.slice(length + 16), // I think it should be length, not addressFamilyLength. ); ```