in reply to Knowing when a socket connection is dead

You're misunderstanding what has_exception() does. It's a little used feature of sockets where "urgent" information can be sent out-of-band. You can think of it a little like how unix processes have both STDOUT and STDERR; there's this extra channel that you can use in exceptional situations.

That said, I've never used that feature myself and I'm not sure it's really that useful.

  • Comment on Re: Knowing when a socket connection is dead