Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/java/net/httpclient/CancelRequestTest.java
41152 views
1
/*
2
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
/*
25
* @test
26
* @bug 8245462 8229822
27
* @summary Tests cancelling the request.
28
* @library /test/lib http2/server
29
* @key randomness
30
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
31
* ReferenceTracker CancelRequestTest
32
* @modules java.base/sun.net.www.http
33
* java.net.http/jdk.internal.net.http.common
34
* java.net.http/jdk.internal.net.http.frame
35
* java.net.http/jdk.internal.net.http.hpack
36
* @run testng/othervm -Djdk.internal.httpclient.debug=true
37
* -Djdk.httpclient.enableAllMethodRetry=true
38
* CancelRequestTest
39
*/
40
// * -Dseed=3582896013206826205L
41
// * -Dseed=5784221742235559231L
42
import com.sun.net.httpserver.HttpServer;
43
import com.sun.net.httpserver.HttpsConfigurator;
44
import com.sun.net.httpserver.HttpsServer;
45
import jdk.test.lib.RandomFactory;
46
import jdk.test.lib.net.SimpleSSLContext;
47
import org.testng.ITestContext;
48
import org.testng.annotations.AfterClass;
49
import org.testng.annotations.AfterTest;
50
import org.testng.annotations.BeforeMethod;
51
import org.testng.annotations.BeforeTest;
52
import org.testng.annotations.DataProvider;
53
import org.testng.annotations.Test;
54
55
import javax.net.ssl.SSLContext;
56
import java.io.IOException;
57
import java.io.InputStream;
58
import java.io.OutputStream;
59
import java.net.InetAddress;
60
import java.net.InetSocketAddress;
61
import java.net.URI;
62
import java.net.http.HttpClient;
63
import java.net.http.HttpConnectTimeoutException;
64
import java.net.http.HttpRequest;
65
import java.net.http.HttpResponse;
66
import java.net.http.HttpResponse.BodyHandler;
67
import java.net.http.HttpResponse.BodyHandlers;
68
import java.util.Iterator;
69
import java.util.List;
70
import java.util.Random;
71
import java.util.concurrent.CancellationException;
72
import java.util.concurrent.CompletableFuture;
73
import java.util.concurrent.ConcurrentHashMap;
74
import java.util.concurrent.ConcurrentMap;
75
import java.util.concurrent.CountDownLatch;
76
import java.util.concurrent.ExecutionException;
77
import java.util.concurrent.Executor;
78
import java.util.concurrent.Executors;
79
import java.util.concurrent.atomic.AtomicLong;
80
import java.util.stream.Collectors;
81
import java.util.stream.Stream;
82
83
import static java.lang.System.arraycopy;
84
import static java.lang.System.out;
85
import static java.nio.charset.StandardCharsets.UTF_8;
86
import static org.testng.Assert.assertEquals;
87
import static org.testng.Assert.assertTrue;
88
89
public class CancelRequestTest implements HttpServerAdapters {
90
91
private static final Random random = RandomFactory.getRandom();
92
93
SSLContext sslContext;
94
HttpTestServer httpTestServer; // HTTP/1.1 [ 4 servers ]
95
HttpTestServer httpsTestServer; // HTTPS/1.1
96
HttpTestServer http2TestServer; // HTTP/2 ( h2c )
97
HttpTestServer https2TestServer; // HTTP/2 ( h2 )
98
String httpURI;
99
String httpsURI;
100
String http2URI;
101
String https2URI;
102
103
static final long SERVER_LATENCY = 75;
104
static final int MAX_CLIENT_DELAY = 75;
105
static final int ITERATION_COUNT = 3;
106
// a shared executor helps reduce the amount of threads created by the test
107
static final Executor executor = new TestExecutor(Executors.newCachedThreadPool());
108
static final ConcurrentMap<String, Throwable> FAILURES = new ConcurrentHashMap<>();
109
static volatile boolean tasksFailed;
110
static final AtomicLong serverCount = new AtomicLong();
111
static final AtomicLong clientCount = new AtomicLong();
112
static final long start = System.nanoTime();
113
public static String now() {
114
long now = System.nanoTime() - start;
115
long secs = now / 1000_000_000;
116
long mill = (now % 1000_000_000) / 1000_000;
117
long nan = now % 1000_000;
118
return String.format("[%d s, %d ms, %d ns] ", secs, mill, nan);
119
}
120
121
final ReferenceTracker TRACKER = ReferenceTracker.INSTANCE;
122
private volatile HttpClient sharedClient;
123
124
static class TestExecutor implements Executor {
125
final AtomicLong tasks = new AtomicLong();
126
Executor executor;
127
TestExecutor(Executor executor) {
128
this.executor = executor;
129
}
130
131
@Override
132
public void execute(Runnable command) {
133
long id = tasks.incrementAndGet();
134
executor.execute(() -> {
135
try {
136
command.run();
137
} catch (Throwable t) {
138
tasksFailed = true;
139
System.out.printf(now() + "Task %s failed: %s%n", id, t);
140
System.err.printf(now() + "Task %s failed: %s%n", id, t);
141
FAILURES.putIfAbsent("Task " + id, t);
142
throw t;
143
}
144
});
145
}
146
}
147
148
protected boolean stopAfterFirstFailure() {
149
return Boolean.getBoolean("jdk.internal.httpclient.debug");
150
}
151
152
@BeforeMethod
153
void beforeMethod(ITestContext context) {
154
if (stopAfterFirstFailure() && context.getFailedTests().size() > 0) {
155
throw new RuntimeException("some tests failed");
156
}
157
}
158
159
@AfterClass
160
static final void printFailedTests() {
161
out.println("\n=========================");
162
try {
163
out.printf("%n%sCreated %d servers and %d clients%n",
164
now(), serverCount.get(), clientCount.get());
165
if (FAILURES.isEmpty()) return;
166
out.println("Failed tests: ");
167
FAILURES.entrySet().forEach((e) -> {
168
out.printf("\t%s: %s%n", e.getKey(), e.getValue());
169
e.getValue().printStackTrace(out);
170
});
171
if (tasksFailed) {
172
System.out.println("WARNING: Some tasks failed");
173
}
174
} finally {
175
out.println("\n=========================\n");
176
}
177
}
178
179
private String[] uris() {
180
return new String[] {
181
httpURI,
182
httpsURI,
183
http2URI,
184
https2URI,
185
};
186
}
187
188
@DataProvider(name = "asyncurls")
189
public Object[][] asyncurls() {
190
String[] uris = uris();
191
Object[][] result = new Object[uris.length * 2 * 3][];
192
//Object[][] result = new Object[uris.length][];
193
int i = 0;
194
for (boolean mayInterrupt : List.of(true, false, true)) {
195
for (boolean sameClient : List.of(false, true)) {
196
//if (!sameClient) continue;
197
for (String uri : uris()) {
198
String path = sameClient ? "same" : "new";
199
path = path + (mayInterrupt ? "/interrupt" : "/nointerrupt");
200
result[i++] = new Object[]{uri + path, sameClient, mayInterrupt};
201
}
202
}
203
}
204
assert i == uris.length * 2 * 3;
205
// assert i == uris.length ;
206
return result;
207
}
208
209
@DataProvider(name = "urls")
210
public Object[][] alltests() {
211
String[] uris = uris();
212
Object[][] result = new Object[uris.length * 2][];
213
//Object[][] result = new Object[uris.length][];
214
int i = 0;
215
for (boolean sameClient : List.of(false, true)) {
216
//if (!sameClient) continue;
217
for (String uri : uris()) {
218
String path = sameClient ? "same" : "new";
219
path = path + "/interruptThread";
220
result[i++] = new Object[]{uri + path, sameClient};
221
}
222
}
223
assert i == uris.length * 2;
224
// assert i == uris.length ;
225
return result;
226
}
227
228
private HttpClient makeNewClient() {
229
clientCount.incrementAndGet();
230
return TRACKER.track(HttpClient.newBuilder()
231
.proxy(HttpClient.Builder.NO_PROXY)
232
.executor(executor)
233
.sslContext(sslContext)
234
.build());
235
}
236
237
HttpClient newHttpClient(boolean share) {
238
if (!share) return makeNewClient();
239
HttpClient shared = sharedClient;
240
if (shared != null) return shared;
241
synchronized (this) {
242
shared = sharedClient;
243
if (shared == null) {
244
shared = sharedClient = makeNewClient();
245
}
246
return shared;
247
}
248
}
249
250
final static String BODY = "Some string | that ? can | be split ? several | ways.";
251
252
// should accept SSLHandshakeException because of the connectionAborter
253
// with http/2 and should accept Stream 5 cancelled.
254
// => also examine in what measure we should always
255
// rewrap in "Request Cancelled" when the multi exchange was aborted...
256
private static boolean isCancelled(Throwable t) {
257
while (t instanceof ExecutionException) t = t.getCause();
258
if (t instanceof CancellationException) return true;
259
if (t instanceof IOException) return String.valueOf(t).contains("Request cancelled");
260
out.println("Not a cancellation exception: " + t);
261
t.printStackTrace(out);
262
return false;
263
}
264
265
private static void delay() {
266
int delay = random.nextInt(MAX_CLIENT_DELAY);
267
try {
268
System.out.println("client delay: " + delay);
269
Thread.sleep(delay);
270
} catch (InterruptedException x) {
271
out.println("Unexpected exception: " + x);
272
}
273
}
274
275
@Test(dataProvider = "asyncurls")
276
public void testGetSendAsync(String uri, boolean sameClient, boolean mayInterruptIfRunning)
277
throws Exception {
278
HttpClient client = null;
279
uri = uri + "/get";
280
out.printf("%n%s testGetSendAsync(%s, %b, %b)%n", now(), uri, sameClient, mayInterruptIfRunning);
281
for (int i=0; i< ITERATION_COUNT; i++) {
282
if (!sameClient || client == null)
283
client = newHttpClient(sameClient);
284
285
HttpRequest req = HttpRequest.newBuilder(URI.create(uri))
286
.GET()
287
.build();
288
BodyHandler<String> handler = BodyHandlers.ofString();
289
CountDownLatch latch = new CountDownLatch(1);
290
CompletableFuture<HttpResponse<String>> response = client.sendAsync(req, handler);
291
var cf1 = response.whenComplete((r,t) -> System.out.println(t));
292
CompletableFuture<HttpResponse<String>> cf2 = cf1.whenComplete((r,t) -> latch.countDown());
293
out.println("response: " + response);
294
out.println("cf1: " + cf1);
295
out.println("cf2: " + cf2);
296
delay();
297
cf1.cancel(mayInterruptIfRunning);
298
out.println("response after cancel: " + response);
299
out.println("cf1 after cancel: " + cf1);
300
out.println("cf2 after cancel: " + cf2);
301
try {
302
String body = cf2.get().body();
303
assertEquals(body, Stream.of(BODY.split("\\|")).collect(Collectors.joining()));
304
throw new AssertionError("Expected CancellationException not received");
305
} catch (ExecutionException x) {
306
out.println("Got expected exception: " + x);
307
assertTrue(isCancelled(x));
308
}
309
310
// Cancelling the request may cause an IOException instead...
311
boolean hasCancellationException = false;
312
try {
313
cf1.get();
314
} catch (CancellationException | ExecutionException x) {
315
out.println("Got expected exception: " + x);
316
assertTrue(isCancelled(x));
317
hasCancellationException = x instanceof CancellationException;
318
}
319
320
// because it's cf1 that was cancelled then response might not have
321
// completed yet - so wait for it here...
322
try {
323
String body = response.get().body();
324
assertEquals(body, Stream.of(BODY.split("\\|")).collect(Collectors.joining()));
325
if (mayInterruptIfRunning) {
326
// well actually - this could happen... In which case we'll need to
327
// increase the latency in the server handler...
328
throw new AssertionError("Expected Exception not received");
329
}
330
} catch (ExecutionException x) {
331
assertEquals(response.isDone(), true);
332
Throwable wrapped = x.getCause();
333
assertTrue(CancellationException.class.isAssignableFrom(wrapped.getClass()));
334
Throwable cause = wrapped.getCause();
335
out.println("CancellationException cause: " + x);
336
assertTrue(IOException.class.isAssignableFrom(cause.getClass()));
337
if (cause instanceof HttpConnectTimeoutException) {
338
cause.printStackTrace(out);
339
throw new RuntimeException("Unexpected timeout exception", cause);
340
}
341
if (mayInterruptIfRunning) {
342
out.println("Got expected exception: " + wrapped);
343
out.println("\tcause: " + cause);
344
} else {
345
out.println("Unexpected exception: " + wrapped);
346
wrapped.printStackTrace(out);
347
throw x;
348
}
349
}
350
351
assertEquals(response.isDone(), true);
352
assertEquals(response.isCancelled(), false);
353
assertEquals(cf1.isCancelled(), hasCancellationException);
354
assertEquals(cf2.isDone(), true);
355
assertEquals(cf2.isCancelled(), false);
356
assertEquals(latch.getCount(), 0);
357
}
358
}
359
360
@Test(dataProvider = "asyncurls")
361
public void testPostSendAsync(String uri, boolean sameClient, boolean mayInterruptIfRunning)
362
throws Exception {
363
uri = uri + "/post";
364
HttpClient client = null;
365
out.printf("%n%s testPostSendAsync(%s, %b, %b)%n", now(), uri, sameClient, mayInterruptIfRunning);
366
for (int i=0; i< ITERATION_COUNT; i++) {
367
if (!sameClient || client == null)
368
client = newHttpClient(sameClient);
369
370
CompletableFuture<CompletableFuture<?>> cancelFuture = new CompletableFuture<>();
371
372
Iterable<byte[]> iterable = new Iterable<byte[]>() {
373
@Override
374
public Iterator<byte[]> iterator() {
375
// this is dangerous
376
out.println("waiting for completion on: " + cancelFuture);
377
boolean async = random.nextBoolean();
378
Runnable cancel = () -> {
379
out.println("Cancelling from " + Thread.currentThread());
380
var cf1 = cancelFuture.join();
381
cf1.cancel(mayInterruptIfRunning);
382
out.println("cancelled " + cf1);
383
};
384
if (async) executor.execute(cancel);
385
else cancel.run();
386
return List.of(BODY.getBytes(UTF_8)).iterator();
387
}
388
};
389
390
HttpRequest req = HttpRequest.newBuilder(URI.create(uri))
391
.POST(HttpRequest.BodyPublishers.ofByteArrays(iterable))
392
.build();
393
BodyHandler<String> handler = BodyHandlers.ofString();
394
CountDownLatch latch = new CountDownLatch(1);
395
CompletableFuture<HttpResponse<String>> response = client.sendAsync(req, handler);
396
var cf1 = response.whenComplete((r,t) -> System.out.println(t));
397
CompletableFuture<HttpResponse<String>> cf2 = cf1.whenComplete((r,t) -> latch.countDown());
398
out.println("response: " + response);
399
out.println("cf1: " + cf1);
400
out.println("cf2: " + cf2);
401
cancelFuture.complete(cf1);
402
out.println("response after cancel: " + response);
403
out.println("cf1 after cancel: " + cf1);
404
out.println("cf2 after cancel: " + cf2);
405
try {
406
String body = cf2.get().body();
407
assertEquals(body, Stream.of(BODY.split("\\|")).collect(Collectors.joining()));
408
throw new AssertionError("Expected CancellationException not received");
409
} catch (ExecutionException x) {
410
out.println("Got expected exception: " + x);
411
assertTrue(isCancelled(x));
412
}
413
414
// Cancelling the request may cause an IOException instead...
415
boolean hasCancellationException = false;
416
try {
417
cf1.get();
418
} catch (CancellationException | ExecutionException x) {
419
out.println("Got expected exception: " + x);
420
assertTrue(isCancelled(x));
421
hasCancellationException = x instanceof CancellationException;
422
}
423
424
// because it's cf1 that was cancelled then response might not have
425
// completed yet - so wait for it here...
426
try {
427
String body = response.get().body();
428
assertEquals(body, Stream.of(BODY.split("\\|")).collect(Collectors.joining()));
429
if (mayInterruptIfRunning) {
430
// well actually - this could happen... In which case we'll need to
431
// increase the latency in the server handler...
432
throw new AssertionError("Expected Exception not received");
433
}
434
} catch (ExecutionException x) {
435
assertEquals(response.isDone(), true);
436
Throwable wrapped = x.getCause();
437
assertTrue(CancellationException.class.isAssignableFrom(wrapped.getClass()));
438
Throwable cause = wrapped.getCause();
439
assertTrue(IOException.class.isAssignableFrom(cause.getClass()));
440
if (cause instanceof HttpConnectTimeoutException) {
441
cause.printStackTrace(out);
442
throw new RuntimeException("Unexpected timeout exception", cause);
443
}
444
if (mayInterruptIfRunning) {
445
out.println("Got expected exception: " + wrapped);
446
out.println("\tcause: " + cause);
447
} else {
448
out.println("Unexpected exception: " + wrapped);
449
wrapped.printStackTrace(out);
450
throw x;
451
}
452
}
453
454
assertEquals(response.isDone(), true);
455
assertEquals(response.isCancelled(), false);
456
assertEquals(cf1.isCancelled(), hasCancellationException);
457
assertEquals(cf2.isDone(), true);
458
assertEquals(cf2.isCancelled(), false);
459
assertEquals(latch.getCount(), 0);
460
}
461
}
462
463
@Test(dataProvider = "urls")
464
public void testPostInterrupt(String uri, boolean sameClient)
465
throws Exception {
466
HttpClient client = null;
467
out.printf("%n%s testPostInterrupt(%s, %b)%n", now(), uri, sameClient);
468
for (int i=0; i< ITERATION_COUNT; i++) {
469
if (!sameClient || client == null)
470
client = newHttpClient(sameClient);
471
Thread main = Thread.currentThread();
472
CompletableFuture<Thread> interruptingThread = new CompletableFuture<>();
473
Runnable interrupt = () -> {
474
Thread current = Thread.currentThread();
475
out.printf("%s Interrupting main from: %s (%s)", now(), current, uri);
476
interruptingThread.complete(current);
477
main.interrupt();
478
};
479
Iterable<byte[]> iterable = () -> {
480
var async = random.nextBoolean();
481
if (async) executor.execute(interrupt);
482
else interrupt.run();
483
return List.of(BODY.getBytes(UTF_8)).iterator();
484
};
485
486
HttpRequest req = HttpRequest.newBuilder(URI.create(uri))
487
.POST(HttpRequest.BodyPublishers.ofByteArrays(iterable))
488
.build();
489
String body = null;
490
Exception failed = null;
491
try {
492
body = client.send(req, BodyHandlers.ofString()).body();
493
} catch (Exception x) {
494
failed = x;
495
}
496
497
if (failed instanceof InterruptedException) {
498
out.println("Got expected exception: " + failed);
499
} else if (failed instanceof IOException) {
500
// that could be OK if the main thread was interrupted
501
// from the main thread: the interrupt status could have
502
// been caught by writing to the socket from the main
503
// thread.
504
if (interruptingThread.get() == main) {
505
out.println("Accepting IOException: " + failed);
506
failed.printStackTrace(out);
507
} else {
508
throw failed;
509
}
510
} else if (failed != null) {
511
assertEquals(body, Stream.of(BODY.split("\\|")).collect(Collectors.joining()));
512
throw failed;
513
}
514
}
515
}
516
517
518
519
@BeforeTest
520
public void setup() throws Exception {
521
sslContext = new SimpleSSLContext().get();
522
if (sslContext == null)
523
throw new AssertionError("Unexpected null sslContext");
524
525
// HTTP/1.1
526
HttpTestHandler h1_chunkHandler = new HTTPSlowHandler();
527
InetSocketAddress sa = new InetSocketAddress(InetAddress.getLoopbackAddress(), 0);
528
httpTestServer = HttpTestServer.of(HttpServer.create(sa, 0));
529
httpTestServer.addHandler(h1_chunkHandler, "/http1/x/");
530
httpURI = "http://" + httpTestServer.serverAuthority() + "/http1/x/";
531
532
HttpsServer httpsServer = HttpsServer.create(sa, 0);
533
httpsServer.setHttpsConfigurator(new HttpsConfigurator(sslContext));
534
httpsTestServer = HttpTestServer.of(httpsServer);
535
httpsTestServer.addHandler(h1_chunkHandler, "/https1/x/");
536
httpsURI = "https://" + httpsTestServer.serverAuthority() + "/https1/x/";
537
538
// HTTP/2
539
HttpTestHandler h2_chunkedHandler = new HTTPSlowHandler();
540
541
http2TestServer = HttpTestServer.of(new Http2TestServer("localhost", false, 0));
542
http2TestServer.addHandler(h2_chunkedHandler, "/http2/x/");
543
http2URI = "http://" + http2TestServer.serverAuthority() + "/http2/x/";
544
545
https2TestServer = HttpTestServer.of(new Http2TestServer("localhost", true, sslContext));
546
https2TestServer.addHandler(h2_chunkedHandler, "/https2/x/");
547
https2URI = "https://" + https2TestServer.serverAuthority() + "/https2/x/";
548
549
serverCount.addAndGet(4);
550
httpTestServer.start();
551
httpsTestServer.start();
552
http2TestServer.start();
553
https2TestServer.start();
554
}
555
556
@AfterTest
557
public void teardown() throws Exception {
558
String sharedClientName =
559
sharedClient == null ? null : sharedClient.toString();
560
sharedClient = null;
561
Thread.sleep(100);
562
AssertionError fail = TRACKER.check(500);
563
try {
564
httpTestServer.stop();
565
httpsTestServer.stop();
566
http2TestServer.stop();
567
https2TestServer.stop();
568
} finally {
569
if (fail != null) {
570
if (sharedClientName != null) {
571
System.err.println("Shared client name is: " + sharedClientName);
572
}
573
throw fail;
574
}
575
}
576
}
577
578
private static boolean isThreadInterrupt(HttpTestExchange t) {
579
return t.getRequestURI().getPath().contains("/interruptThread");
580
}
581
582
/**
583
* A handler that slowly sends back a body to give time for the
584
* the request to get cancelled before the body is fully received.
585
*/
586
static class HTTPSlowHandler implements HttpTestHandler {
587
@Override
588
public void handle(HttpTestExchange t) throws IOException {
589
try {
590
out.println("HTTPSlowHandler received request to " + t.getRequestURI());
591
System.err.println("HTTPSlowHandler received request to " + t.getRequestURI());
592
593
boolean isThreadInterrupt = isThreadInterrupt(t);
594
byte[] req;
595
try (InputStream is = t.getRequestBody()) {
596
req = is.readAllBytes();
597
}
598
t.sendResponseHeaders(200, -1); // chunked/variable
599
try (OutputStream os = t.getResponseBody()) {
600
// lets split the response in several chunks...
601
String msg = (req != null && req.length != 0)
602
? new String(req, UTF_8)
603
: BODY;
604
String[] str = msg.split("\\|");
605
for (var s : str) {
606
req = s.getBytes(UTF_8);
607
os.write(req);
608
os.flush();
609
try {
610
Thread.sleep(SERVER_LATENCY);
611
} catch (InterruptedException x) {
612
// OK
613
}
614
out.printf("Server wrote %d bytes%n", req.length);
615
}
616
}
617
} catch (Throwable e) {
618
out.println("HTTPSlowHandler: unexpected exception: " + e);
619
e.printStackTrace();
620
throw e;
621
} finally {
622
out.printf("HTTPSlowHandler reply sent: %s%n", t.getRequestURI());
623
System.err.printf("HTTPSlowHandler reply sent: %s%n", t.getRequestURI());
624
}
625
}
626
}
627
628
}
629
630