Hi @AndyW I have tested your two patches related with the inet_gethostbyname
function and they doesn’t solve any issue with the connect()
call when using the test-code in #490. The Photon still panics when the server is not available after calling connect()
and then connected()
, in this specific order.
Please take a look to my latest comments in #490, maybe they help you to find a workaround, touching the connect()
and connected()
functions code in /wiring/src/spark_wiring_tcpclient.cpp
. They are quite complex to me to understand what is going on below, to cause a PANIC or to always return 1 when the socket is closed at the server side, etc.
Thanks in advance for your testing.