| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
SSL
SSL.sslfile

# Method SSL.sslfile()->set_blocking()

Method set_blocking

  `void set_blocking()`

Description

  Set the stream in blocking mode. All but the alert callback are zapped.

Note

  There might be some data still waiting to be written to the stream. That will be written in the next blocking call, regardless what it is.

Note

  This function doesn't solve the case when the connection is used nonblocking in some backend thread and another thread switches it to blocking and starts using it. To solve that, put a call out in the backend from the other thread that switches it to blocking, and then wait until that call out has run.

Note

  Prior to version 7.5.12, this function didn't clear the accept callback.