-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
gwsocket as a library #43
Comments
It shouldn't be too bad, I'm guessing the work involved would be to get rid of the gwserver.c file. I can look into it, not sure I can do it soon but I can certainly check it out. Also, I'm thinking you could include those files in your project and work directly with the header files. Probably not as convenient but perhaps a quick solution. |
That would be excellent. I took a look at how the current Makefile is generated and decided it would take me too long to get up to speed on what was going on. Yes this would remove the need for gwserver.c however most of the code would be move across in particular the callbacks to support strict mode, parsing of parameters would not be needed. My current plan is to write a simple makefile which will create a libgwsocket.so. If its ok with you I would like to update the code to remove many of the issues that Coverity (https://www.synopsys.com/software-integrity/security-testing.html) is finding, mainly NULL pointer checking etc. This is a server so security is important. Happy to push changes and once I have completed along with my code that demonstrates how to use if you wish. |
That would be awesome. Thanks! |
would this be something that could be used with apache web server? |
@imatasic what are you trying to achieve? |
@allinurl Well, I am struggling to get the boilerplate configuration for apache to proxy the websocket properly. Sometimes I have to use both proxypass and rewrite directive, sometimes only proxypass works and i think this might impact the performance. example:
This is the only way i found that I can access the websocket from both inside the network, and from the internet when I access https://site.example.com. Maybe I am doing this completely wrong. |
@imatasic if I understand correctly, gwsocket could help you achieve that. goaccess uses gwsocket on the back-end. There are some guides on how to get this done with apache, take a look at this guide. |
Love the way gwserver currently but wonder if anyone would have time to perhaps create a library (libgwserver.so) which does not include gwserver.c so the core code can be embedded inside another process and I do not have to run the gwserver separately.
The text was updated successfully, but these errors were encountered: