-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Convert to using Gin and (greatly) simplify #2
Conversation
ffc636d
to
9c95767
Compare
@MKleusberg Converting this Gin. So far it's not too bad, though Gin's docs aren't very good. 😦 |
@MKleusberg Oh, I've removed the That line seems to be for disabling HTTP/2 support, which I think is to stop the HTTP/2 Rapid Reset attack from working. Go releases from 1.21.3 onwards aren't susceptible to that attack, so won't affect us. If that was disabled for some other reason though, then please let me know as we might need to still disable it after all. 😄 |
d6488b2
to
d5482db
Compare
@lucydodo @chrisjlocke Not sure if you're interested in reviewing Go code, but just in case you are then I'd welcome your input. 😄 |
Thanks for the opportunity, but I don't know enough about Go to comment. :( |
No worries at all. 😄 |
Doesn't looks like anyone's around to review this, so I'm just going to merge it rather than leave it hanging around. 😄 |
This is deployed to production now, and seems to be operating ok. 😄 |
Just had a first closer look and seems all good so far 😄 Three questions popped up though:
And one final thing: |
Thanks for looking over it. 😄
Haven't tested it, so it could be anything from "silently dropped" to "application aborts and is restarted by systemd, which then records to a database". The 2nd one would be better, but I really have no idea yet what the actual behaviour is. 😄 I was more doing it because we had a case of this happening a while back, where it ran for a substantial amount of time (months?) without recording anything. My intention there is that we can at least capture the data, and then figure out if we want to feed it back into the main database. Yeah, it's kind of half arsed for now. 😇 2 - Heh. I hadn't though of putting that info into a database instead, but yeah... that would be doable too. 3 - Yeah, that'd probably be workable too. Just didn't think of it. 😄 I've just pushed a commit to master that removes the CORS middleware, and deployed the updated code to the production server. |
This PR was mostly because I needed a practise project to get the hang of Gin with.
Updating/simplifying this project has been on the wish list for ages anyway, so it's not wasted effort. 😄