Closed cinterloper closed 8 years ago
Work for me. Debian 8.1
yuray@yuray:/tmp$ luajit t.lua
[W 2016/01/13 13:58:39] [async.lua] GET echo.websocket.org:80/ => 101 Switching Protocols 452ms
instance of class HTTPParser
[S 2016/01/13 13:58:39] [websocket.lua] WebSocketClient connection open ws://echo.websocket.org
connected
Hello World!
[S 2016/01/13 13:58:39] [websocket.lua] WebSocketClient closed ws://echo.websocket.org 595ms
Works for me too. Debian 8.2
$ luajit websocket_example.lua
[W 2016/01/14 10:18:49] [async.lua] GET echo.websocket.org:80/ => 101 Switching Protocols 59ms
instance of class HTTPParser
[S 2016/01/14 10:18:49] [websocket.lua] WebSocketClient connection open ws://echo.websocket.org
connected
Hello World!
[S 2016/01/14 10:18:49] [websocket.lua] WebSocketClient closed ws://echo.websocket.org 87ms
Yes, sorry for the delay. I haven't been able to reproduce this problem. Please describe your version of Turbo and also platform you are running.
LuaJIT 2.0.4 -- Copyright (C) 2005-2015 Mike Pall. http://luajit.org/ 4.3.3-2-ARCH #1 SMP PREEMPT x86_64 GNU/Linux Could one of you all link to the lua files you are using so i can double check i get the same results?
Debian jessie x86_64, luajit 2.0.4, rebuilded from stretch.
git clone https://github.com/kernelsauce/turbo
cd turbo
sudo make install
$luajit t.lua
[W 2016/01/26 15:23:09] [async.lua] GET echo.websocket.org:80/ => 101 Switching Protocols 346ms
instance of class HTTPParser
[S 2016/01/26 15:23:09] [websocket.lua] WebSocketClient connection open ws://echo.websocket.org
connected
Hello World!
[S 2016/01/26 15:23:09] [websocket.lua] WebSocketClient closed ws://echo.websocket.org 476ms
^Cluajit: /usr/local/share/lua/5.1/turbo/epoll_ffi.lua:91: interrupted!
stack traceback:
/usr/local/share/lua/5.1/turbo/epoll_ffi.lua:91: in function 'poll'
/usr/local/share/lua/5.1/turbo/ioloop.lua:449: in function '_event_poll'
/usr/local/share/lua/5.1/turbo/ioloop.lua:442: in function 'start'
t.lua:45: in function 'getws'
t.lua:56: in main chunk
[C]: at 0x00404420
[grant@silverbullet ~]$ cd Downloads/
[grant@silverbullet Downloads]$ unzip t.zip
Archive: t.zip
inflating: t.lua
[grant@silverbullet Downloads]$ nano -wc t.lua
[grant@silverbullet Downloads]$ luajit t.lua
[W 2016/01/28 00:01:38] [async.lua] GET echo.websocket.org:80/ => 400 Bad Request 200ms
[E 2016/01/28 00:01:38] Excpected 101, was 400, can not upgrade.
There is something wierd about my lua setup, i created a Fresh arch linux install, and it seems to work.
cat stdln.lua