[Libwebsockets] something broke since my last git pull (some hours ago)

"Andy Green (林安廸)" andy at warmcat.com
Sat Feb 16 15:44:08 CET 2013

On 16/02/13 21:25, the mail apparently from Edwin van den Oetelaar included:
> In serving the normal HTTP some callbacks do not get called :
> sometimes a fd comes into the callback via "user", sometimes via "in"
> my log
> reason=21 user=0 in=0 len=0 // LWS_CALLBACK_PROTOCOL_INIT
> reason=13 user=12 in=0 len=0 // LWS_CALLBACK_FILTER_NETWORK_CONNECTION
> => fd is in user => I return 0 from this callback
> reason=23 user=0 in=12 len=1 // LWS_CALLBACK_ADD_POLL_FD, => I add
> fd=12 to my list
> reason=13 user=13 in=0 len=0 // LWS_CALLBACK_FILTER_NETWORK_CONNECTION
> => I return 0 from this callback
> reason=23 user=0 in=13 len=1 // LWS_CALLBACK_ADD_POLL_FD => I add
> fd=13 to my list
> reason=24 user=0 in=12 len=0 // LWS_CALLBACK_DEL_POLL_FD
> reason=24 user=0 in=13 len=0 // LWS_CALLBACK_DEL_POLL_FD
> reason=13 user=12 in=0 len=0
> reason=23 user=0 in=12 len=1
> reason=13 user=13 in=0 len=0
> reason=23 user=0 in=13 len=1
> reason=24 user=0 in=12 len=0
> reason=24 user=0 in=13 len=0
> I compiled everything cleanly
> What is happening here?
> Thanks for your time already,
> Greetings Edwin
> PS. the test-server and test-server-extpoll are also not giving back
> any data for me!!!

They're workable here.  I guess one day I'll push something without 
testing it on them but normally, nothing gets pushed until I see it work 
on the test server + test client + chrome.

I've seen that kind of time warp behaviour before though, it was because 
I had built the libs and installed them in the default /usr/local. 
Normally I configure with --prefix=/usr

On your "bad" setup, use ldd on the test server and confirm it's binding 
to the libwebsockets.so you expect.


More information about the Libwebsockets mailing list