File tree 1 file changed +7
-2
lines changed
spring-web/src/main/java/org/springframework/http/server/reactive
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
21
21
import java .net .URI ;
22
22
import java .net .URISyntaxException ;
23
23
import java .nio .ByteBuffer ;
24
+ import java .util .concurrent .atomic .AtomicLong ;
24
25
25
26
import javax .net .ssl .SSLSession ;
26
27
50
51
*/
51
52
class UndertowServerHttpRequest extends AbstractServerHttpRequest {
52
53
54
+ private static final AtomicLong logPrefixIndex = new AtomicLong ();
55
+
56
+
53
57
private final HttpServerExchange exchange ;
54
58
55
59
private final RequestBodyPublisher body ;
@@ -125,7 +129,8 @@ public <T> T getNativeRequest() {
125
129
126
130
@ Override
127
131
protected String initId () {
128
- return ObjectUtils .getIdentityHexString (this .exchange .getConnection ());
132
+ return ObjectUtils .getIdentityHexString (this .exchange .getConnection ()) +
133
+ "-" + logPrefixIndex .incrementAndGet ();
129
134
}
130
135
131
136
You can’t perform that action at this time.
0 commit comments