Code Monkey home page Code Monkey logo

Comments (10)

haoxins avatar haoxins commented on July 16, 2024

map vars has been deleted In the branch beta https://github.com/go-zoo/bone/tree/beta, 11ebbcb.

from bone.

solher avatar solher commented on July 16, 2024

Ok cool ;)

from bone.

solher avatar solher commented on July 16, 2024

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.

squiidz avatar squiidz commented on July 16, 2024

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.

solher avatar solher commented on July 16, 2024

Hahaha awesome :)

from bone.

solher avatar solher commented on July 16, 2024

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.

squiidz avatar squiidz commented on July 16, 2024

It should be done tomorrow, I will notify you when it's ok. Sorry for the delay

from bone.

solher avatar solher commented on July 16, 2024

No problem, thanks 👍

from bone.

squiidz avatar squiidz commented on July 16, 2024

it should work on the beta branch now.

from bone.

solher avatar solher commented on July 16, 2024

Thanks a lot ;)

from bone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.