Archived Forum Post

Index of archived forum posts


PureBasic CkSocket::ckClose() always waits 10 seconds

Feb 13 '17 at 13:02


CkSocket::ckClose() seems to always take 10 seconds to complete. The other side of the socket reports that the connection has been closed in less than a second and I have the timeout value set to 9999999.

Any ideas?


The CkSocket::ckClose method takes 1 argument, which is an integer specifying the max wait time for a clean close in milliseconds. You should be able to pass a small value to it, to close without waiting.