GithubHelp home page GithubHelp logo

Comments (4)

bwehrle avatar bwehrle commented on June 14, 2024 1

This now makes sense:

  • Body will never contain content chunks because we're using an HttpObjectAggregator
  • The aggregator has a limit which is set to 1MB
  • This approach applies that maximum content size (note: this value is not exposed in the configuration)
  • Netty already has a default max header size as well

I think we can close this issue.

from xoom-http.

bwehrle avatar bwehrle commented on June 14, 2024

This also might exist for other aspects of the HTTP Request (headers, path or other elements)

from xoom-http.

VaughnVernon avatar VaughnVernon commented on June 14, 2024

Thanks @bwehrle! Internally we use Netty, especially on Linux-based systems due to a strange JDK error in polling socket channels on Linux. We do declare a buffer limit of 1 MB for Netty, but I don't know if this is supposed to prevent the kinds of attacks you suggest looking out for. If so then it should be covered.

This is used by all normal ServerActor instances, and it enables the service/application to set its own limit:

https://github.com/vlingo/xoom-wire/blob/d307b796e3fe85d0bcd3d7aa70d0ad3235d1d38d/src/main/java/io/vlingo/xoom/wire/fdx/bidirectional/netty/server/NettyServerChannelActor.java#L192

This is used when an HttpAgent is specifically requested:

channelPipeline.addLast(new HttpObjectAggregator(1048576));

from xoom-http.

bwehrle avatar bwehrle commented on June 14, 2024

Let me check the underlying wire system and if its using a specified limit or if that buffer limit is sufficient.

from xoom-http.

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.