Giter Club home page Giter Club logo

Comments (5)

millross avatar millross commented on May 26, 2024

Just as an FYI, writing an equivalent test in vert.x raw http handling (rather than wrapped by Apex) behaves properly, so the problem lies within Apex somewhere.

from vertx-web.

millross avatar millross commented on May 26, 2024

This looks like a race condition to me. Did a little bit of debugging, and it's clear that with both a small and large file attachment, HttpServerRequestImpl::streamToFileSystem is called. This method pauses the request and then resumes it once the Pump to file has been set up.

For a small file, however, the resume call happens AFTER HttpServerFileUpload::complete() is called, meaning that at the point the latter method is called, the request is still paused. For a larger file, HttpServerFileUpload::complete() is called before the resume call within HttpServerRequestImpl::streamToFileSystem, so in effect a small file upload is identified as complete before the request is resumed. This then falls foul of the "paused" check in HttpServerFileUpload::complete() and the notifyEndHandler() call is not made, meaning that the request does not complete on the server. In short this actually appears to be a vert.x bug rather than an Apex bug.

from vertx-web.

purplefox avatar purplefox commented on May 26, 2024

Thanks for looking into this.

I'll take a look probably tomorrow, if you can create a reproducer only using Vert.x (not Apex) even better :)

from vertx-web.

millross avatar millross commented on May 26, 2024

Thanks Tim, I'll try and carve out some time today to create a vert.x only reproducer, can't promise it though as I'm a bit stuck for time till Thurs now (from my point of view there's no urgent need for this to be fixed, so unless you're pressed by others, please feel free to hold off till I've at least attempted a vert.x only reproducer).

from vertx-web.

purplefox avatar purplefox commented on May 26, 2024

This should be fixed now (bug in vertx-core). I've also added some more tests.

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.