title: "Connection reset by peer exception" in android
body: <p>Here is my code to extract data from sql server using ksoap2 library.</p>
  
  <p>But sometimes it returns <code>connection reset by peer</code> exception.</p>
  
  <p>While searching on this exception gives a solution:</p>
  
  <blockquote>
    <p>System.setProperty("http.keepAlive", "true");</p>
  </blockquote>
  
  <p>But still I get this exception,please help me to solve this issue.</p>
  
  <pre><code>System.setProperty("http.keepAlive", "true");
  SoapObject request = new SoapObject("http://tempuri.org/", method);
  PropertyInfo pio = new PropertyInfo();
  pio.setName(name);
  pio.setValue(0);
  pio.setType(String.class);
  request.addProperty(pio);
  SoapSerializationEnvelope envelope = new  SoapSerializationEnvelope(SoapEnvelope.VER11);
  envelope.dotNet=true;
  envelope.setOutputSoapObject(request);
  HttpTransportSE androidHttpTransport = new  HttpTransportSE(address,30000);
  androidHttpTransport.call(soapaction, envelope);
  Object jObj = (Object)envelope.getResponse();
  </code></pre>