Comments (4)
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.
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.
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.
@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)
- When the WebSocket connection is closed, the registrations is not clear! HOT 3
- CSRF Handler can "trap" users HOT 7
- BodyHandler: document setDeleteUploadedFilesOnEnd HOT 2
- FileUpload API improvements
- BodyHandler default body limit change HOT 1
- Vertx Web Validation circular refs tests are failing
- fail() in RoutingContextImpl constructor causes "Unhandled exception in router" even if error was handled
- converting routing context request to web socket returns text handler id as null. HOT 1
- ForwardedParser parse XFF IPV6. HOT 4
- sqlConnection.updateWithParams HOT 1
- VertxRest HOT 1
- Investigate if Vertx WebClient can support HTTP proxy server proxying HTTPS requests HOT 1
- Add webUser() method to io.vertx.ext.web.handler.graphql.ws.Message HOT 2
- vertx-web-graphql subscription onError() is not returning a payload of an array of GraphQLErrors HOT 1
- `BodyHandler` with `deleteUploadedFilesOnEnd=true` fail to clean temporary file HOT 1
- GraphQLWS: store the RoutingContext in GraphQLContext HOT 1
- Deprecate GraphQLHandler#getRoutingContext HOT 1
- Support request forwarding to Web API Service with new OpenAPI Router
- Handling close connection with GraphQLWSHandler HOT 8
- vertx-web-api-contract contains shaded dependencies with Critical CVE
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 vertx-web.