nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

pubsub test freezes when built with libevent 2.1.x #149

Open jollyroger opened 5 years ago

jollyroger commented 5 years ago

Hi,

Debian is underdoing migration to libevent 2.1.x. With this library running pubsub test takes forever (progress stops on 2%):

make[2]: Entering directory '/build/webdis-0.1.4+dfsg'
python tests/basic.py
......................
----------------------------------------------------------------------
Ran 22 tests in 0.805s

OK
python tests/limits.py
..
----------------------------------------------------------------------
Ran 2 tests in 1.915s

OK
./tests/pubsub -p 39805
2 %
E: Build killed with signal TERM after 150 minutes of inactivity

I have tested both webdis and pubsub binaries compiled with old and new libevent library and found that the issue lies in the pubsub test rather than in webdis (the webdis binary compiled with libevent 2.1.x works fine with pubsub binary compiled with old libevent library). Unfortunately I'm not familiar neither with libevent nor with programming in C to fix this.