Johny5 Posted May 7, 2020 Share Posted May 7, 2020 (edited) So I have just discovered stream_socket_client(), which is pretty powerful, I'm sending e-mails with it already. I'm just wondering though, do I need to use fclose for the sake of my server or the host? I want to avoid leaving unused connections with the host but am presuming that they will timeout and flcose is for the benefit of my server only, is that right? Edited May 7, 2020 by Johny5 Quote Link to comment https://forums.phpfreaks.com/topic/310720-stream_socket_client/ Share on other sites More sharing options...
kicken Posted May 7, 2020 Share Posted May 7, 2020 The connection will get closed eventually sure, but why leave it laying around unused until then? Close it when your done with it. Quote Link to comment https://forums.phpfreaks.com/topic/310720-stream_socket_client/#findComment-1577680 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.