playframework / playframework/play1

IllegalStateException when sending http to https Socket

Open
#1,173 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
671
Avg merge
12d 15h
Merged PRs (30d)
1

Description

Method exceptionCaught in play.server.ssl.SslPlayHandler causes
throw new IllegalStateException("cannot send more responses than requests")
at org.jboss.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:101)

With the new ssl-tests from #1159. call the 9000 port with http instead of https.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with method exceptionCaught in play.server.ssl.SslPlayHandler and reproduce the failure by sending HTTP to port 9000 instead of HTTPS, using the SSL tests introduced by #1159. Trace the resulting HttpContentEncoder exception and verify that this request no longer causes the IllegalStateException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, networking, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.