Managed Hosting



Project Home Known Issues Contact Project

POP CFC Issue: Socket.cfc SSL Timeout in read()

Name: Socket.cfc SSL Timeout in read()
ID: 12
Project: POP CFC
Type: Bug
Area: Code
Severity: Low
Status: Fixed
Related URL: https://gist.github.com/hjcotton/3b5943fefd666d08e51d
Creator: Hadyn Cotton
Created: 06/24/15 10:27 AM
Updated: 01/15/17 1:24 PM
Description: I was having trouble using socket.cfc's read() function when connecting to mail servers over SSL (There was a comment in the file that it always times out when SSL is used.)

The issue appears to be that [when SSLSocketFactory is used] Java's BufferedReader never reports ready(). According to http://stackoverflow.com/questions/29778233/not-getting-a-response-when-communicating-with-google-using-java-sslsocket doing a read() or readLine() will trigger it to report ready() as it should.

The Github gist shows the fix, which I only used when "useSSL" is set to true. With that change I've been able to connect to secure mail servers without issue.
History: Created by hjcotton (Hadyn Cotton) : 06/24/15 10:27 AM

Updated by newmediadev (Paul Vernon) : 01/15/17 1:24 PM
Added to the code and finally updated the RIA Forge archive with this fix.

To add a comment to this bug, please login using the link above.