Invalid URLs should be signified by a wrapper class, such as an Optional<URL::URL> in the IPC file. I do not believe that we have anything which currently relies on passing through an invalid URL.
TCPSocket
SECPxxxr1
can_read_without_blocking
verify_cast
as