jait-purohit / tamacat

Automatically exported from code.google.com/p/tamacat
0 stars 0 forks source link

When httpcore-4.2.2 is used, a reverseUrl infinite loop error occurs in ReverseProxyHandler. #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. use httpcore-4.2.2
2. use reverse proxy
3. 503 error occurs in ReverseProxyHandler.

The error has occurred not by an infinite loop but by reuse of HttpContext. 

Original issue reported on code.google.com by tamacat.org on 23 Oct 2012 at 12:30

GoogleCodeExporter commented 8 years ago
org.tamacat.core.WorkerThread.java

[before]
  public void run() {
      HttpContext context = new BasicHttpContext(null);
      try {
          while (Thread.interrupted() == false) {
              this.service.handleRequest(conn, context);

[after]
  public void run() {
      HttpContext context = null;
      try {
          while (Thread.interrupted() == false) {
              context = new BasicHttpContext(null);
              this.service.handleRequest(conn, context);

Original comment by tamacat.org on 23 Oct 2012 at 12:33

GoogleCodeExporter commented 8 years ago
Bug fixed tamacat-httpd-1.0.1

Original comment by tamacat.org on 23 Oct 2012 at 12:50