Skip to content

Commit

Permalink
LDEV-5140 increase default size of cgi scope to 64 items (#2433)
Browse files Browse the repository at this point in the history
LDEV-5140 increase default size of cgi scope to 64 items

https://luceeserver.atlassian.net/browse/LDEV-5140
  • Loading branch information
zspitzer authored Nov 6, 2024
1 parent dc60523 commit 5c2ef50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/lucee/runtime/type/scope/CGIImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public final class CGIImpl extends StructSupport implements CGI, ScriptProtected
KeyConstants._request_method, KeyConstants._request_url, KeyConstants._script_name, KeyConstants._server_name, KeyConstants._server_port,
KeyConstants._server_port_secure, KeyConstants._server_protocol, KeyConstants._server_software, KeyConstants._web_server_api, KeyConstants._context_path,
KeyConstants._local_addr, KeyConstants._local_host };
private static Struct staticKeys = new StructImpl();
private static Struct staticKeys = new StructImpl(StructImpl.TYPE_UNDEFINED, 64);
static {
for (int i = 0; i < STATIC_KEYS.length; i++) {
staticKeys.setEL(STATIC_KEYS[i], "");
Expand Down Expand Up @@ -120,7 +120,7 @@ public void initialize(PageContext pc) {
}

// if(internal==null) {
internal = new StructImpl();
internal = new StructImpl(StructImpl.TYPE_UNDEFINED, 64);
aliases = new HashMap<Collection.Key, Collection.Key>();
String k, v;
Collection.Key key, alias, httpKey;
Expand Down Expand Up @@ -180,7 +180,7 @@ public boolean containsValue(Object value) {

@Override
public Collection duplicate(boolean deepCopy) {
Struct sct = new StructImpl();
Struct sct = new StructImpl(StructImpl.TYPE_UNDEFINED, 64);
StructImpl.copy(this, sct, deepCopy);
return sct;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public final class CGIImplReadOnly extends ReadOnlyStruct implements CGI, Script
KeyConstants._request_method, KeyConstants._request_url, KeyConstants._script_name, KeyConstants._server_name, KeyConstants._server_port,
KeyConstants._server_port_secure, KeyConstants._server_protocol, KeyConstants._server_software, KeyConstants._web_server_api, KeyConstants._context_path,
KeyConstants._local_addr, KeyConstants._local_host };
private static Struct staticKeys = new StructImpl();
private static Struct staticKeys = new StructImpl(StructImpl.TYPE_UNDEFINED, 64);
static {
for (int i = 0; i < keys.length; i++) {
staticKeys.setEL(keys[i], "");
Expand Down Expand Up @@ -139,7 +139,7 @@ public boolean containsValue(Object value) {

@Override
public Collection duplicate(boolean deepCopy) {
Struct sct = new StructImpl();
Struct sct = new StructImpl(StructImpl.TYPE_UNDEFINED, 64);
copy(this, sct, deepCopy);
return sct;
}
Expand Down

0 comments on commit 5c2ef50

Please sign in to comment.