Comments (3)
As part of the TLS additions this was taken care of (as of commit 39767c2). Listening sockets now have some protocol information with them (currently only "http") that gets sent to the workers so the workers know what protocol to speak. This mostly readies the code for additional protocols.
from netsarlacc.
I'm reopening this because I realized that some protocols like SMTP expect the server to say something first before the client says anything. The code we have currently expects the client to talk first. We'll have to keep this in mind when we want to adapt the code to support another protocol like SMTP.
from netsarlacc.
Splitting the workers into readers and workers made this a bit easier. SMTP support was added with commit bebcb31
from netsarlacc.
Related Issues (20)
- Parameterize and CONSTize many magic values / strings / paths HOT 1
- Code should accept a path via cmdline / config and not assume working in '.' HOT 1
- Get socket handles and then drop privs by passing handles through daemon HOT 1
- Factor out template code and try to re-use some work between invocations HOT 2
- Moar, better, updated docs, readme, examples
- Consider decoupling reading from socket and the parsing, logging of HTTP, and sending responses HOT 1
- Need to audit usage of time for timezone correctness HOT 1
- Move the worker stopping code into the dispatcher file HOT 1
- Move the stopping of the logger into the logger.go file HOT 1
- Collapse the starting of the ReadWorkers and normal workers into one start function HOT 1
- init scripts
- Look into increasing TCP backlock on listening socket HOT 1
- Possibily record TLS SNI if the client uses it HOT 2
- Possibly record version of TLS negoiated
- Rework socket read() calls to do more than one HOT 1
- Move global configuration vars to a config struct
- Explore making protocol handlers more modular
- IPv6 support
- Add build versioning / version number
- Add generic "listen" protocol.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netsarlacc.