Comments (10)
map vars
has been deleted In the branch beta
https://github.com/go-zoo/bone/tree/beta, 11ebbcb.
from bone.
Ok cool ;)
from bone.
New error, even in the branch beta
.
I got a fatal error: concurrent map writes
on the muxStack[req] = m
in ServeHTTP
.
func (m *Mux) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
muxStack[req] = m
// Check if a route match
if !m.parse(rw, req) {
// Check if it's a static ressource
if !m.staticRoute(rw, req) {
// Check if the request path doesn't end with /
if !m.validate(rw, req) {
m.HandleNotFound(rw, req)
}
}
}
delete(muxStack, req)
}
from bone.
I'm already working on this :) should be fix tomorrow. I'ts a litlle bit long, because i'm trying to find a way to drop the delay of route containing variables. Any ideas are welcome !
from bone.
Hahaha awesome :)
from bone.
It seems that it is still not working.
I still got some fatal error: concurrent map writes
at the same place.
Any plans ? Because half of my services crash right now.
from bone.
It should be done tomorrow, I will notify you when it's ok. Sorry for the delay
from bone.
No problem, thanks
from bone.
it should work on the beta branch now.
from bone.
Thanks a lot ;)
from bone.
Related Issues (20)
- URL Encoded Path Parameters Not Working
- NotFound handler does't allow to write custom headers.
- Problem in setting Route.Atts bitflag HOT 1
- Go 1.7 context package HOT 2
- Concurrency issue in route.go HOT 1
- go1.7: using http.Request.WithContext breaks bone GetValues HOT 2
- case insensitive urls HOT 5
- Cookies dont have domain and path info HOT 2
- Method is not set on individual routes HOT 2
- Unable to serve static files (css, js , html) HOT 1
- Question: supports subdomains HOT 1
- 404 Error instead of 405 Status Code HOT 8
- getRequestRoute for subroutes HOT 3
- I doubt about the speed of bone than other Mux like httprouter HOT 2
- Typo HOT 1
- Static files browser caching HOT 1
- Include Allow header with 405 response HOT 5
- New release 1.2.1 shouldn't have been called a patch HOT 2
- Consider tagging semver releases HOT 2
- /api/home/ with trail slash should be not found
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 bone.