Closed ghost closed 1 year ago
Hi @dennisnoerprevas, The example you provided works just fine here:
$ ./examples/echo/echo
Waiting for incoming connections...
Connection opened, addr: 127.0.0.1
I receive a message: abc (3), from: 127.0.0.1
Connection closed, addr: 127.0.0.1
Could you tell me more about the environment you're running? like OS (and version of it), whether Glibc, Musl (and version), which commit version are you using from this project and etc?
so I can try to reproduce here...
I do not really know what is going on x) I just tested again, and this time I got a secfault.
Waiting for incoming connections... Connection opened, addr: 127.0.0.1 Segmentation fault
Then, I used GDB to generate a backtrace, but then everything worked as expected.
And now when I run the program without GDB, it works as expected...
Sooo the problem is 'solved' / no longer observable.
Nice project^ Thanks for your work.
When using the wsServer on localhost the IP can be retrieved in open and close, but not in
onmessage()
:The code used in this test is based on the demo example: