flomesh-io / pipy

Pipy is a programmable proxy for the cloud, edge and IoT.
https://flomesh.io/pipy
Other
771 stars 73 forks source link

Pipy process crashes when printing "__inbound.remoteAddress" in onEnd() #112

Closed wanpf closed 2 years ago

wanpf commented 2 years ago

Pipy process crashes when printing "__inbound.remoteAddress" in onEnd().

Version : nightly-202208231036 Commit : 8436d3bcd9c1b05f4fd6bea5111cedf3db098ec4 Commit Date : Mon, 22 Aug 2022 23:05:38 +0800 Host : Linux-5.15.0-43-generic x86_64 OpenSSL : OpenSSL 1.1.1q 5 Jul 2022 Builtin GUI : Yes Samples : Yes

test pjs: ///////////////

(( ) => pipy({ }) .listen(8081) .onEnd( () => console.log('bug ......', __inbound.remoteAddress) ) .serveHTTP( () => new Message('Hi, there!\n') ) )()

pajama-coder commented 2 years ago

Solved in b80b1bc464f95b3ad6c2f2b38c2e7c0acc065877. @wanpf Please give it a check to see if it works. Thanks.

wanpf commented 2 years ago

Tested and the problem has been fixed.