Thanks a lot, Anyway, I couldn't make it works, yet. The code that I'm using is in attachment file:
When we try to add 2 file descriptors to event queue:
(uwsgi --plugins-dir /opt/uwsgi/ --plugins psgi,coroae,http
--http-websockets --coroae 40 --psgi-enable-psgix-io --http :8083 --psgi
/tmp/websockets_echo.pl)
*** Operational MODE: async ***
PSGI app 0 (/tmp/websockets_echo.pl) loaded in 0 seconds at 0x8bec65c
(interpreter 0x8adca28)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 20775, cores: 40)
*** running coroae loop engine [addr:0xb715ca80] ***
[pid: 20775|app: 0|req: 1/1] 192.168.0.166 () {36 vars in 592 bytes} [Mon
Nov 11 15:00:04 2013] GET / => generated 1134 bytes in 0 msecs (HTTP/1.1
200) 1 headers in 44 bytes (1 switches on core 39)
!!! uWSGI process 20775 got Segmentation Fault !!!
*** backtrace of 20775 ***
uwsgi(uwsgi_backtrace+0x2a) [0x80a2b4a]
uwsgi(uwsgi_segfault+0x2a) [0x80a2d1a]
[0xb77b7400]
uwsgi(async_add_fd_read+0x74) [0x807bd04]
/opt/uwsgi//psgi_plugin.so(XS_wait_fd_read+0x11d) [0xb731f12d]
/usr/lib/libperl.so.5.14(Perl_pp_entersub+0x4aa) [0xb724760a]
/usr/lib/libperl.so.5.14(Perl_runops_standard+0x18) [0xb723df78]
/usr/lib/libperl.so.5.14(Perl_call_sv+0x4b7) [0xb71cdbc7]
/opt/uwsgi//psgi_plugin.so(psgi_call+0x111) [0xb7327741]
/opt/uwsgi//psgi_plugin.so(uwsgi_perl_request+0x4c0) [0xb73291d0]
/opt/uwsgi//coroae_plugin.so(XS_coroae_accept_request+0x101) [0xb715fd91]
/usr/lib/libperl.so.5.14(Perl_pp_entersub+0x4aa) [0xb724760a]
/usr/lib/libperl.so.5.14(Perl_runops_standard+0x18) [0xb723df78]
/usr/lib/libperl.so.5.14(perl_run+0x299) [0xb71d4279]
/usr/local/lib/perl/5.14.2/auto/Coro/State/State.so(+0xa3a5) [0xb6ec93a5]
/usr/local/lib/perl/5.14.2/auto/Coro/State/State.so(+0x9a3a) [0xb6ec8a3a]
/lib/i386-linux-gnu/libc.so.6(abort+0) [0xb73696b0]
*** end of backtrace ***
Trying to add only websocket fd breaks with this error:
epoll_ctl(): File exists [core/event.c line 520]
[uwsgi-perl error] unable to add fd 8 to the event queue at /tmp/
websockets_echo.pl line 64.
Greetings!
> This patch adds uwsgi::connection_fd
>
>
> https://github.com/unbit/uwsgi/commit/20b5b7b0dc05c64203e1ffa3f97dbe853d526bfe
>
> and a new option --psgi-enable-psgix-io
>
> that enable the PSGI extension psgix.io that allows you to make things
> like:
>
> $env->{psgix.io}->send("Hello World")
>
> the extension is not enabled by default as it requires 3-4 syscalls that
> could impact performance
websocket_echo.pl
Description: Perl program
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
