Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TCPClient SSL on Android
#8
(10-16-2019, 04:51 AM)BartKindt Wrote: Now I have to ask you how I should use this SetSockOpt to set a Timeout for the SSL negotiation

There is no "SSL negotiation" timeout. And even if there were, it wouldn't be set as a timeout at the socket layer, it would be set as a timeout at the OpenSSL layer. The SetSockOpt() method sets options on the underlying socket itself, such as SO_SNDTIMEO and SO_RCVTIMEO (did you read the documentation I linked to in my last reply?), eg:

Code:
// timeout blocking reads after 15 secs
IdTCPClient.Socket.Binding.SetSockOpt(Id_SOL_SOCKET, Id_SO_RCVTIMEO, 15000);

// timeout blocking sends after 15 secs
IdTCPClient.Socket.Binding.SetSockOpt(Id_SOL_SOCKET, Id_SO_SNDTIMEO, 15000);

Reply


Messages In This Thread
TCPClient SSL on Android - by BartKindt - 10-12-2019, 10:16 PM
RE: TCPClient SSL on Android - by rlebeau - 10-14-2019, 07:30 PM
RE: TCPClient SSL on Android - by BartKindt - 10-14-2019, 11:08 PM
RE: TCPClient SSL on Android - by rlebeau - 10-15-2019, 05:09 PM
RE: TCPClient SSL on Android - by BartKindt - 10-15-2019, 05:15 PM
RE: TCPClient SSL on Android - by rlebeau - 10-16-2019, 12:05 AM
RE: TCPClient SSL on Android - by BartKindt - 10-16-2019, 04:51 AM
RE: TCPClient SSL on Android - by rlebeau - 10-16-2019, 05:27 PM
RE: TCPClient SSL on Android - by BartKindt - 10-16-2019, 10:03 PM
RE: TCPClient SSL on Android - by rlebeau - 10-17-2019, 12:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)