Open jaecktec opened 3 years ago
Async invocations are likely buggy in most languages, as these implementations have not been used in the wild so far, as far as I know. It might take a while to make them actually usable for this purpose...
This isn't currently the main area of focus for the team, so I don't think you should expect to see much movement coming from our side of the fence on this domain in the near future... That being said I'd be happy to take pull requests if you have some free time and are feeling brave (I'm happy to provide guidance, too).
I have this exact case (building a testing library that mocks an http server) - I'd be happy to look in to this more if there is a good place to start looking. I think #4133 is related (and a possible cause), too.
:question: Guidance
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
General Information
1.35.0 (build 6ebef96), typescript 3.9.10
Darwin xxxx 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
The Question
Hello, I'm trying evaluate the possibility to build a testing library that mocks a http server. I tried some code:
this works fine in node, however it seems I can't get a connection from my junit test:
I've also hit an infinite sleep in the junit test and tried to curl the local address, however with no success.
could it be that it is not possible to expose a socket from the internal node process?