Skip to content
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

Support woo server. (Currently no problem found in CLOG. This issue opened for external reference) #201

Open
shakatoday opened this issue Aug 4, 2022 · 2 comments

Comments

@shakatoday
Copy link
Contributor

shakatoday commented Aug 4, 2022

Woo got much better performance than Hunchentoot, so I think CLOG should support Woo server.

Current situation is that the CLOG server can't send messages to clients if applying Woo server. (Clients can send to their servers, though)

CL-USER> (clog:run-tutorial 6) ; file edited to call with :server :woo


 ---- The tutorial src is located at: /Users/danielviolin/projects/side/clog/./tutorial/06-tutorial.lisp
Woo server is started.
Listening on 0.0.0.0:8080.
HTTP listening on    : 0.0.0.0:8080
HTML root            : /Users/danielviolin/projects/side/clog/static-files/
Long poll first      : no
Boot function added  : no
Boot html source use : compiled version, when no file
Boot js source use   : compiled version
Boot file for path / : /boot.html
NIL
NIL
0
New connection id - 0b05eb96b2772f7359a3a94651a6be12 - #<SERVER {7017AC9B23}>
Start new window handler on connection-id - 0b05eb96b2772f7359a3a94651a6be12
Connection id 0b05eb96b2772f7359a3a94651a6be12 has closed. #<SERVER {7017AC9B23}>
Attempt to set event on non-existant connection.

After investigation, it seems that Woo hasn't completely supported multi-threaded websocket connections. Ref: fukamachi/websocket-driver#35

My thought is we probably don't have to modify anything in CLOG.

There's a branch in Woo solving this problem. fukamachi/woo#81
It works on clog tutorial 6 but fails on my project ackfock.com .

I opened this issue anyway in order to mention it in fukamachi/woo#81 . I hope this can increase the priority of Woo's progress in Common Lisp community.

@shakatoday shakatoday changed the title Support woo server. (Currently no problem found in CLOG. This issue opened for referencing) Support woo server. (Currently no problem found in CLOG. This issue opened for external reference) Aug 4, 2022
@ska80
Copy link
Contributor

ska80 commented Aug 4, 2022

Does woo support other CL implementations well? It looks like it is still in beta quality, and it is optimized only for SBCL. Hunchentoot is very portable, and I can successfully run CLOG apps using LispWorks.

@rabbibotton
Copy link
Owner

Woo would never replace, it would just be an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants