*** jk_ajp13_worker.c.orig	Mon Jul  9 11:25:02 2001
--- jk_ajp13_worker.c	Mon Jul  9 11:48:33 2001
***************
*** 338,343 ****
--- 338,344 ----
                      return JK_INTERNAL_ERROR;
                  }
              }
+             return JK_AJP13_SEND_HEADERS;
  	    break;
  
          case JK_AJP13_SEND_BODY_CHUNK:
***************
*** 701,707 ****
  				jk_log(l, JK_LOG_ERROR, "Error sending request data %d\n", rc);
                 	 		return JK_FALSE;
  			}
! 		} else if(rc < 0) {
  			return (JK_FALSE); /* XXX error */
  		}
  	}
--- 702,715 ----
  				jk_log(l, JK_LOG_ERROR, "Error sending request data %d\n", rc);
                 	 		return JK_FALSE;
  			}
! 		} else if( JK_AJP13_SEND_HEADERS == rc ){
! 		  /* 
!                    * At this point the headers are away.
!                    * It is a protocol error to re-try the request after this.
!                    */
! 		  op->recoverable = JK_FALSE;
!               
!                 } else if(rc < 0) {
  			return (JK_FALSE); /* XXX error */
  		}
  	}
