metajack/libstrophe — pull request #19 by boothj5 (2012-05-20 00:53:19+00:00)
Title: Option to disable TLS

I've had a problem with a certain server advertising that it supports TLS by returning the TLS feature, but then doesn't respond to the handshake.

Unfortunately I can't find out much about the server.

I originally tried adding a timeout on the handshake, but the coding got pretty low level inside the tls_start function and a much simpler solution seemed to add a TLS disable flag on the connection object. This works with my jabber client that now has the option to call xmpp_conn_disable_tls.

It'd be great if you could put this change in so I can carry on working with your repo rather than my fork. If you have any comments/suggestions of a better way let me know.

Thanks,

James.