Buggy code:
public class HTTPSampler2 extends HTTPSamplerBase implements Interruptible { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String HTTP_AUTHENTICATION_PREEMPTIVE = "http.authentication.preemptive" ; private static final boolean canSetPreEmptive ; static final String PROXY_HOST = System . getProperty ( "http.proxyHost" , "" ) ; private static final String NONPROXY_HOSTS = System . getProperty ( "http.nonProxyHosts" , "" ) ; static final int PROXY_PORT = Integer . parseInt ( System . getProperty ( "http.proxyPort" , "0" ) ) ; private static final boolean PROXY_DEFINED = ( ( HTTPSampler2 . PROXY_HOST . length ( ) ) > 0 ) && ( ( HTTPSampler2 . PROXY_PORT ) > 0 ) ; static final String PROXY_USER = JMeterUtils . getPropDefault ( HTTP_PROXY_USER , "" ) ; static final String PROXY_PASS = JMeterUtils . getPropDefault ( HTTP_PROXY_PASS , "" ) ; private static final String PROXY_DOMAIN = JMeterUtils . getPropDefault ( "http.proxyDomain" , "" ) ; static final InetAddress localAddress ; private static final String localHost ; static final ThreadLocal httpClients = new ThreadLocal ( ) ; private static final Set nonProxyHostFull = new HashSet ( ) ; private static final List nonProxyHostSuffix = new ArrayList ( ) ; private static final int nonProxyHostSuffixSize ; protected volatile HttpClient savedClient ; private static boolean isNonProxy ( String host ) { } private static boolean isPartialMatch ( String host ) { } public HTTPSampler2 ( ) { } private String sendPostData ( PostMethod post ) throws IOException { } protected HttpClient setupConnection ( URL u , HttpMethodBase httpMethod , HTTPSampleResult res ) throws IOException { String urlStr = u . toString ( ) ; URI uri = new URI ( urlStr , false ) ; String schema = uri . getScheme ( ) ; if ( ( schema == null ) || ( ( schema . length ( ) ) == 0 ) ) { schema = PROTOCOL_HTTP ; } if ( PROTOCOL_HTTPS . equalsIgnoreCase ( schema ) ) { SSLManager . getInstance ( ) ; } Protocol protocol = Protocol . getProtocol ( schema ) ; String host = uri . getHost ( ) ; int port = uri . getPort ( ) ; HostConfiguration hc = new HostConfiguration ( ) ; hc . setHost ( host , port , protocol ) ; if ( ( HTTPSampler2 . localAddress ) != null ) { hc . setLocalAddress ( HTTPSampler2 . localAddress ) ; } boolean useProxy = ( HTTPSampler2 . PROXY_DEFINED ) && ( ! ( HTTPSampler2 . isNonProxy ( host ) ) ) ; if ( useProxy ) { if ( HTTPSampler2 . log . isDebugEnabled ( ) ) { HTTPSampler2 . log . debug ( ( ( ( "Setting<seq2seq4repair_space>proxy:<seq2seq4repair_space>" + ( HTTPSampler2 . PROXY_HOST ) ) + ":" ) + ( HTTPSampler2 . PROXY_PORT ) ) ) ; } hc . setProxy ( HTTPSampler2 . PROXY_HOST , HTTPSampler2 . PROXY_PORT ) ; } Map map = ( ( Map ) ( HTTPSampler2 . httpClients . get ( ) ) ) ; HttpClient httpClient = ( ( HttpClient ) ( map . get ( hc ) ) ) ; if ( httpClient == null ) { httpClient = new HttpClient ( new SimpleHttpConnectionManager ( ) ) ; if ( HTTPSampler2 . log . isDebugEnabled ( ) ) { HTTPSampler2 . log . debug ( ( "Created<seq2seq4repair_space>new<seq2seq4repair_space>HttpClient:<seq2seq4repair_space>@" + ( System . identityHashCode ( httpClient ) ) ) ) ; } httpClient . setHostConfiguration ( hc ) ; map . put ( hc , httpClient ) ; if ( useProxy ) { if ( ( HTTPSampler2 . PROXY_USER . length ( ) ) > 0 ) { httpClient . getState ( ) . setProxyCredentials ( new AuthScope ( HTTPSampler2 . PROXY_HOST , HTTPSampler2 . PROXY_PORT , null , AuthScope . ANY_SCHEME ) , new NTCredentials ( HTTPSampler2 . PROXY_USER , HTTPSampler2 . PROXY_PASS , HTTPSampler2 . localHost , HTTPSampler2 . PROXY_DOMAIN ) ) ; } } } else { if ( HTTPSampler2 . log . isDebugEnabled ( ) ) { HTTPSampler2 . log . debug ( ( "Reusing<seq2seq4repair_space>the<seq2seq4repair_space>HttpClient:<seq2seq4repair_space>@" + ( System . identityHashCode ( httpClient ) ) ) ) ; } } int rto = getResponseTimeout ( ) ; if ( rto > 0 ) { <START_BUG> httpMethod . getParams ( ) . setSoTimeout ( 1 ) ; <END_BUG> } int cto = getConnectTimeout ( ) ; if ( cto > 0 ) { httpClient . getHttpConnectionManager ( ) . getParams ( ) . setConnectionTimeout ( cto ) ; } httpMethod . setFollowRedirects ( getAutoRedirects ( ) ) ; if ( getUseKeepAlive ( ) ) { httpMethod . setRequestHeader ( HEADER_CONNECTION , KEEP_ALIVE ) ; } else { httpMethod . setRequestHeader ( HEADER_CONNECTION , CONNECTION_CLOSE ) ; } setConnectionHeaders ( httpMethod , u , getHeaderManager ( ) , getCacheManager ( ) ) ; String cookies = setConnectionCookie ( httpMethod , u , getCookieManager ( ) ) ; setConnectionAuthorization ( httpClient , u , getAuthManager ( ) ) ; if ( res != null ) { res . setURL ( u ) ; res . setCookies ( cookies ) ; } return httpClient ; } protected void setDefaultRequestHeaders ( HttpMethod httpMethod ) { } protected String getResponseHeaders ( HttpMethod method ) { } private String setConnectionCookie ( HttpMethod method , URL u , CookieManager cookieManager ) { } private void setConnectionHeaders ( HttpMethod method , URL u , HeaderManager headerManager , CacheManager cacheManager ) { } protected String getConnectionHeaders ( HttpMethod method ) { } private void setConnectionAuthorization ( HttpClient client , URL u , AuthManager authManager ) { } protected HTTPSampleResult sample ( URL url , String method , boolean areFollowingRedirect , int frameDepth ) { } private String sendPutData ( PutMethod put ) throws IOException { } private static class ViewableFilePart extends FilePart { private boolean hideFileData ; public ViewableFilePart ( String name , File file , String contentType , String charset ) throws FileNotFoundException { } public void setHideFileData ( boolean hideFileData ) { }

Fix:
httpMethod . getParams ( ) . setSoTimeout ( rto ) ;