http://issues.jabsorb.org/show_bug.cgi?id=57

           Summary: org.jabsorb.client.HTTPSession now thread-safe
           Product: jabsorb
           Version: 1.3
            Status: NEW
          Keywords: Usability
          Severity: patch
          Priority: medium
         Component: client
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=29)
 --> (http://issues.jabsorb.org/attachment.cgi?id=29)
HttpClient MultiThread Patch

the HttpClient and its ConnectionManager in use, it turned out, are not able to
handle parallel requests simultaneously. this is due to the fact that the
instantiation of HttpClient without explicitly assigning an ConnectionManager
leads to the usage of SimpleHttpConnectionManager which is _NOT_ thread-safe by
design.

proposed solution: assigning an instance of MultiThreadedHttpConnectionManager
to HttpClient. this saved my day. additionally i had to wrap the execution of
the post-request with

try { ... } finally { postMethod.releaseConnection(); } 

which is required when MultiThreadedHttpConnectionManager is in use.


-- 
Configure bugmail: http://issues.jabsorb.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.

_______________________________________________
Jabsorb-dev mailing list
[email protected]
http://lists.jabsorb.org/mailman/listinfo/jabsorb-dev

Reply via email to