return false;
}
if (readTimeout == -1) {
- if (!fill(false,false)) //request line parsing
+ if (!fill(false,true)) //request line parsing
return false;
} else {
// Do a simple read with a short timeout
- if ( !readSocket(true, false) ) return false;
+ if ( !readSocket(true, true) ) return false;
}
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) //request line parsing
+ if (!fill(true,true)) //request line parsing
return false;
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) //request line parsing
+ if (!fill(true,true)) //request line parsing
return false;
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) //reques line parsing
+ if (!fill(true,true)) //reques line parsing
return false;
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) {//parse header
+ if (!fill(true,true)) {//parse header
headerParsePos = HeaderParsePosition.HEADER_START;
return HeaderParseStatus.NEED_MORE_DATA;
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) { //parse header
+ if (!fill(true,true)) { //parse header
return HeaderParseStatus.NEED_MORE_DATA;
}
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) {//parse header
+ if (!fill(true,true)) {//parse header
//HEADER_VALUE, should already be set
return HeaderParseStatus.NEED_MORE_DATA;
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) {//parse header
+ if (!fill(true,true)) {//parse header
//HEADER_VALUE
return HeaderParseStatus.NEED_MORE_DATA;
}
}
// Read new bytes if needed
if (pos >= lastValid) {
- if (!fill(true,false)) {//parse header
+ if (!fill(true,true)) {//parse header
//HEADER_MULTI_LINE
return HeaderParseStatus.NEED_MORE_DATA;
import org.apache.catalina.tribes.group.GroupChannel;
import junit.framework.TestCase;
+import org.apache.catalina.tribes.transport.ReceiverBase;
/**
* @author Filip Hanik
channel.stop(channel.DEFAULT);
}
+ public void testScrap() throws Exception {
+ System.out.println(channel.getChannelReceiver().getClass());
+ ((ReceiverBase)channel.getChannelReceiver()).setMaxThreads(1);
+ }
+
+
public void testDoublePartialStart() throws Exception {
//try to double start the RX
int count = 0;
Tomcat Version 3.x 4.x 5.x 6.x 6.x 5.5.x 6.x
Support Polling NO YES YES
Polling Size N/A Unlimited - Restricted by mem Unlimited
- Read HTTP Request Blocking Non Blocking Blocking
+ Read HTTP Request Blocking Blocking Blocking
Read HTTP Body Blocking Blocking Blocking
Write HTTP Response Blocking Blocking Blocking
SSL Support Java SSL Java SSL OpenSSL