[OpenSIPS-Users] What cause TCP connection reset ?

Hamid Hashmi hamid2kviii at hotmail.com
Fri Feb 19 11:18:19 CET 2016


Hi Răzvan
Thank you, I have already set the TCP chunk size to 8 but it was still showing "4 read attempts".
#### Protocol TCPloadmodule "proto_tcp.so"modparam("proto_tcp", "tcp_send_timeout", 200)modparam("proto_tcp", "tcp_max_msg_chunks", 8)
but from your reply I thought that may there be an potion for TLS too :-p by increasing chunk size for TLS. 
#### Protocol TLSloadmodule "proto_tls.so"
modparam("proto_tls","verify_cert", "1")modparam("proto_tls","require_cert", "1")modparam("proto_tls","tls_method", "TLSv1")modparam("proto_tls","certificate", "/path/to/certificate.pem")modparam("proto_tls","private_key", "/path/to/private_key.key")modparam("proto_tls","ca_list", "/path/to/ca_list.pem")modparam("proto_tls", "tls_max_msg_chunks", 8)modparam("proto_tls", "tls_handshake_timeout", 119)modparam("proto_tls", "tls_send_timeout", 121)
It worked. :-) Cheers
Hamid R. HashmiSoftware Engineer - VoIPVopium A/S

To: users at lists.opensips.org
From: razvan at opensips.org
Date: Fri, 19 Feb 2016 10:23:28 +0200
Subject: Re: [OpenSIPS-Users] What cause TCP connection reset ?


  
    
  
  
    This situation appears when a SIP message is sent in more than 4
    "chunks" (this is tuneable). If the SIP message is too fragmented,
    OpenSIPS closes the connection to prevent packets fragmentation
    attacks.

    

    Best regards,

    Răzvan

    

    On 02/19/2016 07:25 AM, Hamid Hashmi
      wrote:

    
    
      
      Why opensips send TCP
          connection reset packet ?
        

          
        I have been facing an error of 

          

          ERROR:proto_tls:tcp_handle_req:
              Made 4 read attempts but message is not complete yet -
              closing connection
          

          
          while wireshark traces
            shows that a TCP connection reset packet was sent back to
            UAC by opensips server. 
          

          
          
              
            
             
            
          
             
          

          Hamid
                R. Hashmi
          Software Engineer - VoIP
          Vopium
              A/S
        
      
      

      
      

      _______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

    
    

    -- 
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
  


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160219/5fa6988b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ATT00001
Type: image/png
Size: 17387 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20160219/5fa6988b/attachment-0001.png>


More information about the Users mailing list