-
Notifications
You must be signed in to change notification settings - Fork 61
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
Why not use Goweb? #49
Comments
Unscalable codecs - see stretchr/codecs#21 |
Thanks for the feedback. On 3 Sep 2013, at 20:10, Islan Dberry [email protected] wrote:
|
We tried to use net/http directly but ended up thinking again on generalizing response functions (read "controllers" used the same in different places), mapping requests and parameters to functions and keeping them the right RESTful way. It's an overhead from a project to project (not talking about small projects to roll out quicklt a bunch of resources). With Goweb we had to focus only on the following:
|
Such a relief :-) Even though Goweb put some constraints they are hackable. We didn't wont to end with Gorilla-based mambo-jumbo in Go ;-) |
I don't like a way how Goweb works with variables in mapping paths. It uses ugly github.com/stretchr/stew/objects (compare it with github.com/bitly/go-simplejson) |
@matryer Great! |
As a new user to goweb, these were my initial thoughts, right or wrong:
|
I would like to use Goweb to run a server application on port 80 as a non-root user. Is this possible with Goweb 2? Currently I'm using Goweb version 1 and I found that if I use setgid and setuid after starting a server as root with Goweb the new threads that Goweb serves are still owned by root. This leads me to believe if did setgid and setuid inside Goweb that I could fix this, but I was wondering if this could be handled more gracefully with Goweb 2. |
@jaredbischof You can do this without root using setcap. |
That's actually precisely what I'm doing right now. :) I was just curious if there was a way to handle this inside golang for all threads. |
@jaredbischof Currently, not easily. That's a Go limitation though. It's difficult to ensure every thread does setuid/setgid (https://code.google.com/p/go/issues/detail?id=1435). setcap is actually safer because binding to port <1024 is all the program can do. privbind is another option. |
Yeah, I saw that issue. Noticed it was pretty old, so I thought it might On Tue, Nov 19, 2013 at 1:45 PM, Luke Scott [email protected]:
|
Goweb mentioned on TheChangeLog: |
Please leave a comment and tell us:
The text was updated successfully, but these errors were encountered: