You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to test a REST API parallelizing some tasks using GPars.
I have one connection to the server and tried something like:
withPool(5) {
(1..amount).eachParallel {
println it
def res
res = ehrserver.createEhr() // this contains a RESTClient instance used to send POST requests
println res.status +' '+ res.message
}
}
With amount = 100, I'm getting exceptions after the first 30+ runs of the eachParallel:
java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
The text was updated successfully, but these errors were encountered:
I'm trying to test a REST API parallelizing some tasks using GPars.
I have one connection to the server and tried something like:
withPool(5) {
(1..amount).eachParallel {
println it
def res
res = ehrserver.createEhr() // this contains a RESTClient instance used to send POST requests
println res.status +' '+ res.message
}
}
With amount = 100, I'm getting exceptions after the first 30+ runs of the eachParallel:
java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
The text was updated successfully, but these errors were encountered: