Closed vivekrao1985 closed 2 years ago
The error message reads like an dns error message, what's the class of the error object?
Also, please try to remove the tcp://
part from the ClientTlsContext constructor.
Yes, this turned out to be a connectivity issue on my end. Once I resolved that everything worked. I did not need to remove the tcp://
part but it works either way.
You have disabled peer verification anyway, so yeah, the hostname doesn't matter.
I currently have an array of options defined -
I use the options to create a socket context -
And then I open a connection -
And I get a new resource that I can do stuff with. The above code works.
I want to port this code over to use amphp socket. So far I have this -
However I always get this error from the echo above -
What am I doing wrong?