-
Notifications
You must be signed in to change notification settings - Fork 111
Got a socket init error #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@xinqiyang you didn't look closer enough :) You need the "websocket" git branch in the ngx_lua github repository for now because this thing is not yet merged into the master branch nor getting included in any ngx_openresty releases. To quote the related part in that blog post:
Anyway, I'm going to merge the websocket branch into master in the next few days or so. Regards, |
@agentzh Thank you .... |
I test success. @agentzh,Thank you! |
hi...
I follow https://medium.com/p/1778601c9e05 to try to make a demo,but when i connect to server ,it got socket init error.
nginx version: ngx_openresty/1.4.2.5
Nginx Log :
2013/09/18 00:32:13 [error] 6245#0: *3 lua entry thread aborted: runtime error: /usr/local/lualib/resty/websocket/server.lua:105: expecting zero arguments, but got 1
stack traceback:
coroutine 0:
[C]: in function 'req_sock'
/usr/local/lualib/resty/websocket/server.lua:105: in function 'new'
[string "content_by_lua"]:3: in function <[string "content_by_lua"]:1>, client: 192.168.56.1, server: ko.local.freeflare.com, request: "GET /1.0/websocket HTTP/1.1", host: "ko.local.freeflare.com"
nginx conf:
worker_processes 2;
error_log logs/error.log;
events {
worker_connections 10240;
}
http {
include mime.types;
}
vhosts/yagamiko.conf
log_format yagamiko '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_cookie" $http_x_forwarded_for';
server {
listen 80 so_keepalive=2s:2s:8;
server_name ko.local.freeflare.com;
The text was updated successfully, but these errors were encountered: