-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger and static resource support AWS Lambda HTTP, Azure HTTP #9717
Conversation
4b013c8
to
1912d0f
Compare
...mazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java
Outdated
Show resolved
Hide resolved
52311f8
to
03dfd8c
Compare
@oztimpower This has resolved the exception stack trace issues when running with test harness. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except you have used .transferred() instead of .count()
...mazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java
Show resolved
Hide resolved
...ons-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/BaseFunction.java
Show resolved
Hide resolved
e097168
to
d91e04c
Compare
lambda formatting virtual handler poll loop error messages git rid of poll loop fix transferTo revert back
d91e04c
to
2e76ec5
Compare
@stuartwdouglas Approve? |
@patriot1burke I'm considering backporting that one to 1.5.1. Does it make sense to you or is it too risky? |
There's risk, but go for it. Have to trust our testsuite. |
I was not handling static resource correctly in the virtual HTTP layer. This fix will allow swagger support to work with AWS and Azure HTTP extensions as well as any static resource that emits FileRegion's internally.
I also redid the VirtualChannel stuff a bit to avoid context switching. I was having trouble with FileRegions as the VirtualChannel was closing the file before the azure/aws layer could read from the region. Since I was doing too much context switching anyways, I decided to just move message processing to the io loop. This aws/azure message processing is all non-blocking so it should be fine.
@stuartwdouglas Not sure if I handled FileRegions correctly. Can you take a look? They are in a spin loop. It looks like the NioChannel is handling them in the same way.