[uWSGI] websocket psgi sharedarea_wait broken?

Alexander Nikitin schnixe at googlemail.com
Mon Apr 28 19:08:20 CEST 2014


hi,

my first post here ;)

PSGI (looks similar to the eyetoy example, but does not work for me):
...
uwsgi::websocket_handshake($env->{HTTP_SEC_WEBSOCKET_KEY}, 
$env->{HTTP_ORIGIN});

while(1) {

   # wait for updates in the sharedarea
   uwsgi::sharedarea_wait(0, 50); # this is line 70
   # send a binary websocket message directly from the sharedarea
   uwsgi::websocket_send_from_sharedarea(0, 0);
}

INI
[uwsgi]
plugins         = http,0:psgi,coroae
psgi            = /path/to/my.psgi
http-socket     = :8080
master          = true
coroae          = 40
http-websockets = true
sharedarea      = 1
uid             = www-data
gid             = www-data

testing uwsgi 2.0.3 and 2.0.4, both fail with:

[uwsgi-perl error] FATAL: Coro SLF calls can only be made normally, not 
via goto or any other means, caught at ... line 70.
-> multiple times
*** Error in `./uwsgi': realloc(): invalid next size: 0x00000000018ee7c0 ***
!!! uWSGI process 3635 got Segmentation Fault !!!

perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for 
x86_64-linux-gnu-thread-multi

libcoro-perl
Version: 6.370-1

debian wheezy, virtualbox


thx
alex


More information about the uWSGI mailing list