Closed TharmiganK closed 1 month ago
Tested with the update 10 RC pack, and noticed that the number of threads are increasing for a simple passthrough service.
Passthrough service:
import ballerina/http;
listener http:Listener serverEP = new (9091);
const string CLIENT_URL = "http://localhost:9090";
final http:Client testClient = check new (CLIENT_URL);
service /passthrough on serverEP {
isolated resource function get .() returns http:Response|error {
return testClient->/greeting;
}
}
Backend service:
import ballerina/http;
service on new http:Listener(9090) {
resource function get greeting() returns string {
return "Hello, World!";
}
}
Output with update 10 RC1 pack:
Output with Ballerina SwanLake 2201.9.2:
Note: This might not be related to the interceptor load test error rate issue
The additional threads are created for connection eviction task(implemented via: https://github.com/ballerina-platform/module-ballerina-http/pull/2066) but those should not be created for a downgraded HTTP/1.1 connection
Fixed with the linked PR
Description:
This is with the update 10 pack