Giter Club home page Giter Club logo

Comments (4)

guss77 avatar guss77 commented on June 22, 2024

My repro is actually a bit broken - something about threads and contexts. In my actual workflow I'm using just Vert.x async processing where it repros quite well, but the minimal test case looks to be too minimal right now.

I'll fix it up in a bit, but the problem is definitely there.

from vertx-web.

guss77 avatar guss77 commented on June 22, 2024

The repro is now properly showing the issue - it is running the same code twice: when setting the delay period to 0, the test passes, when setting the delay period to 10ms if gets stuck and times out.

from vertx-web.

tsegismont avatar tsegismont commented on June 22, 2024

If you can't define the BodyHandler first, you must pause the request like this:

    router.post().handler(ctx -> {
      ctx.request().pause();
      System.out.println(Instant.now() + " Delaying before body processing");

Otherwise, all the content will be discarded before the BodyHandler gets invoked.

from vertx-web.

guss77 avatar guss77 commented on June 22, 2024

@tsegismont - how about just handling the invalid situation with an error, instead of leaving the request unprocessed and unprocessable? Something like PR #2439 ?

Ideally there'll be a richer API, but if that cannot be the case - can we at least get an error?

from vertx-web.

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.