Skip to content

Commit 6082b66

Browse files
committed
🐛 set prefetchedVariables to null instead of empty map.
1 parent 5c1f207 commit 6082b66

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/java/nginx/clojure/clj/LazyRequestMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ public void tagReleased() {
578578
}
579579

580580
if (this.prefetchedVariables != null) {
581-
this.prefetchedVariables.clear();
582-
this.updatedVariables.clear();
581+
this.prefetchedVariables = null;
582+
this.updatedVariables = null;
583583
}
584584

585585
((NginxClojureHandler)handler).returnToRequestPool(this);

src/java/nginx/clojure/java/NginxJavaRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ public void tagReleased() {
536536
}
537537

538538
if (prefetchedVariables != null) {
539-
prefetchedVariables.clear();
540-
updatedVariables.clear();
539+
prefetchedVariables = null;
540+
updatedVariables = null;
541541
}
542542

543543
((NginxJavaHandler)handler).returnToRequestPool(this);

test/nginx-working-dir/conf/nginx-plain.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ http {
195195

196196

197197
server {
198-
listen 8080 reuseport;
198+
listen 8080;
199199
server_name localhost;
200200

201201
#uncomment this two lines for performance test

0 commit comments

Comments
 (0)