Skip to content

When SSL_get_error() returns SSL_ERROR_SYSCALL, include the error from GetLastError() #14

@rlebeau

Description

@rlebeau

BTW, when SSL_get_error returns 5 (SSL_ERROR_SYSCALL), It would be wise to include actual message from SysErrorMessage(GetLastError) that was in this case returning 'An operation was attempted on something that is not a socket". Raising 'Failed to shutdown the TLS connection.', doesn't give much clues what happened.

Originally posted by @rapa4362 in IndySockets/Indy#513 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Element: SSL/TLSIssues related to SSL/TLS handling, TIdSSLIOHandlerSocketBase and descendantsStatus: Review NeededIssue needs further review to decide next statusType: EnhancementIssue is proposing a new feature/enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions