Changed location that socket was going non_blocking to avoid php errors and not-knowing if the socket was actually connecting.