https://issues.apache.org/bugzilla/show_bug.cgi?id=44910

           Summary: TCP Sampler "isReUseConnection" issue.
           Product: JMeter
           Version: 2.3.1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I tested application using JMeter TCP Sampler. This application closes session
when TCP Socket is closed.

But when I use the isReUseConnection flag - new connection is started
but old socket doesn't closed until JMeter is not closed.

TCPSampler closes connection in the finally block in the "sample" method if
isReUseConnection set. But it closes new connection from the map but old
connection is never closed.

I think connection should be closed every time when new connection created in
the getSocket(). I added closeSocket() method to the getSocket() method:

  ...
  try {    // line 141
        closeSocket();
        con = new Socket(getServer(), getPort());
  ...

and it works for me correctly.

Thank you.
-- 
Regards,
Dmitry Kudrenko
ARDAS group http://ardas.dp.ua


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to