Skip to content

Instantly share code, notes, and snippets.

<!--- Fixes POPCFC (http://popcfc.riaforge.org/) socket.cfc read() timing out when connecting over SSL.
Source: http://stackoverflow.com/questions/29778233/not-getting-a-response-when-communicating-with-google-using-java-sslsocket --->
<cfloop condition="not locInput.ready()">
<cfset sleep(1)> <!--- take a breather --->
<cfif timeout LT getTickCount()>
<!--- if we're here we haven't had a response from the server --->
<cfthrow message="Connection Timed out." detail="The connection did not receive a response within the timeout period.">
</cfif>