/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 6270015
* @summary Light weight HTTP server
*/
/**
* Test pipe-lining (block after read)
*/
try {
} finally {
delay();
}
}
throws IOException
{
int x = invocation ++;
switch (x) {
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
break;
}
t.close();
}
}
byte [] b = new byte [1024];
int count = 0, c;
count+=c;
}
throw new RuntimeException ("strings not equal");
}
}
"HTTP/1.1 200 OK.*Xtest: 0.*"+
"HTTP/1.1 200 OK.*Xtest: 1.*"+
"HTTP/1.1 200 OK.*Xtest: 2.*"+
"HTTP/1.1 200 OK.*Xtest: 3.*";
String s = "GET /test/1.html HTTP/1.1\r\nContent-length: 20\r\n"+
"\r\n" +body1 +
"GET /test/2.html HTTP/1.1\r\nContent-length: 30\r\n"+
"\r\n"+ body2 +
"GET /test/3.html HTTP/1.1\r\nContent-length: 10\r\n"+
"\r\n"+ body3 +
"GET /test/4.html HTTP/1.1\r\nContent-length: 10\r\n"+
"\r\n"+body4;
int c, count=0;
byte[] b = new byte [1024];
count +=c;
}
throw new RuntimeException ("wrong string result");
}
}
);
}
}