semitrivial / scgi-c-library Goto Github PK
View Code? Open in Web Editor NEWAsynchronous SCGI written in C. For usage in custom-built http daemons.
License: MIT License
Asynchronous SCGI written in C. For usage in custom-built http daemons.
License: MIT License
i cloned your repo to archlinux and it complained for fd_set type. I googled it out and added include <sys/types.h> into both c and h files and that helped
Hello,
Thanks for you code, I have learnt a lot. And your comments are pretty enough to keep me going even when I am tired :)
But I have some areas that are not so much pretty clear to me:
You used list of ports, and at same time you used only one process, wont this impact on speed?
fd_set list is global and it is also initialized during each time a port is to be processed, where will fd's members be when one port makes way for another (but will not yet closed).
I would like to see an example that uses multiple ports.
Hello @semitrivial, i was playing implementing a SCGI server from scratch and it works ok with Nginx.
The key is to always add a 'Content-Length' header telling how long your response body is (even if its zero).
I am trying to use your library to implement multipart mjpeg streaming in nginx. How to call scgi_write or scgi_send multiple times for one request? I will try to patch your code to implement this feature. Will you review it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.