title: tls: oversized record received with length XXXXX
body: <p>I use the built-in standard SSL socket client library (net + crypto/tls) like this:</p>
  
  <pre><code>conn, err := net.Dial("tcp", "exploit.im:5222")
  //...
  config := tls.Config{InsecureSkipVerify: true}
  tls_conn := tls.Client(conn, &amp;config)
  fmt.Println(tls_conn.Handshake())
  </code></pre>
  
  <p>And am getting the message:</p>
  
  <blockquote>
    <p>conn, err := net.Dial("tcp", "exploit.im:5222")</p>
  </blockquote>
  
  <p>I managed to find out it is somehow related to the default maximum packet size (16384 + 2048 set in common.go:31). Is there any standard work around (without patching this value &amp; rebuilding the lib)? </p>