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

WAGsZincStreamingServerAdaptor starts a new session on every request #1317

Open
pdebruic opened this issue Jun 20, 2022 · 1 comment
Open

Comments

@pdebruic
Copy link
Contributor

Load Seaside in GS, along with the Gs Application Tools

Change ZnSeasideNewGemServer>>#serverClass to

serverClass
    ^WAGsZincStreamingServerAdaptor

define WAGsZincStreamingServerAdaptor>>#defaultZnServer as

defaultZnServer
     ^ ZnGemServerManagingMultiThreadedServer on: self port

in tODE start the server with

mount @/sys/stone/dirs/Seaside3/tode /home seaside
/home/seaside/gemServer --register=seaside --type=zinc --port=8001
/home/seaside/gemServer --start=seaside 

in a browser open 127.0.0.1:8001 & see the seaside welcome screen

click the link for the Counter

instead of seeing the Counter, see the Seaside welcome screen.

Changing ZnSeasideNewGemServer>>#serverClass back to WAZincNewGemServerAdaptor and everything works fine

@pdebruic
Copy link
Contributor Author

Not every request, just HTML requests. Not CSS/images/JS file library requests.

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

No branches or pull requests

1 participant