GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IllegalStateException seen when "Expect: 100-continue" header used · Issue #4079 · netty/netty

IllegalStateException seen when "Expect: 100-continue" header used #4079

New issue
Copy link
New issue
Copy link
Closed
Closed
IllegalStateException seen when "Expect: 100-continue" header used#4079
Copy link
Assignees
normanmaurer
Labels
defect
Milestone
4.0.31.Final

Description

@gjesse
gjesse
opened on Aug 12, 2015
Issue body actions

Netty version: 4.0.29.Final, 4.0.30.Final

I am using netty to power an http server along with the rxNetty library.

I am seeing this issue after upgrading from 4.0.28 to 4.0.30.Final - When I submit a request that includes an "Expect: 100-continue header", I end up getting 2 response attempts for a single request, and an IllegalStateException on the second response from this line:

https://github.com/netty/netty/blob/netty-4.0.30.Final/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java#L105

the response is being written here:

https://github.com/netty/netty/blob/netty-4.0.30.Final/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java#L132

I verified the same issue occurs in 4.0.29.

Activity

  1. normanmaurer commented on Aug 12, 2015

    @normanmaurer
    normanmaurer
    on Aug 12, 2015
    Member
    More actions

    Let me check

  2. normanmaurer
    self-assigned this
    on Aug 12, 2015
  3. normanmaurer
    added this to the 4.0.31.Final milestone on Aug 12, 2015
  4. Scottmitch commented on Aug 12, 2015

    @Scottmitch
    Scottmitch
    on Aug 12, 2015
    Member
    More actions

    @gjesse - I haven't looked at this issue in detail but PR #4083 seems to address similar concerns. Would you mind trying this PR?

  5. gjesse commented on Aug 12, 2015

    @gjesse
    gjesse
    on Aug 12, 2015
    Author
    More actions

    @Scottmitch, It's certainly in the same area - not sure if it addresses my concerns but I will try it out and see what happens

  6. normanmaurer commented on Aug 13, 2015

    @normanmaurer
    normanmaurer
    on Aug 13, 2015
    Member
    More actions

    @Scottmitch @gjesse its not related... Working on a fix as we speak

  7. normanmaurer
    added 4 commits that reference this issue on Aug 20, 2015

    [#4079] Fix IllegalStateException when HttpContentEncoder is used and…

    3c203be

    [#4079] Fix IllegalStateException when HttpContentEncoder is used and…

    16d136d

    [#4079] Fix IllegalStateException when HttpContentEncoder is used and…

    e59ae12

    [#4079] Fix IllegalStateException when HttpContentEncoder is used and…

    f8019ba
  8. normanmaurer
    closed this as completedon Aug 21, 2015
  9. normanmaurer
    added
    defect
    on Aug 21, 2015
  10. d-t-w commented on Sep 18, 2015

    @d-t-w
    d-t-w
    on Sep 18, 2015
    Contributor
    More actions

    Thanks @normanmaurer I just came across this issue while using 4.0.29. Updated to 4.0.31 and can confirm 100-continue behaves correctly again.

  11. pulllock
    added a commit that references this issue on Oct 19, 2023

    [netty#4079] Fix IllegalStateException when HttpContentEncoder is use…

    02b464c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @normanmaurer
    normanmaurer

Labels

defect

Type

No type

Projects

No projects

    Milestone

    • 4.0.31.Final

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.