rtspconnection: add OSX specific hack to detect when a connection is refused
authorAlessandro Decina <alessandro.d@gmail.com>
Mon, 15 Aug 2011 21:41:24 +0000 (23:41 +0200)
committerAlessandro Decina <alessandro.d@gmail.com>
Mon, 15 Aug 2011 21:46:53 +0000 (23:46 +0200)
commit22cc529409a7dc62b36be256bc23899156e3c1c2
treef2ca644be5b6ce5e12628213aec22b4185aa3921
parent59f2249284764f9acbf0bf6928b2b98fd5dd22e2
rtspconnection: add OSX specific hack to detect when a connection is refused

Unlike linux, OSX wakes up select with POLLOUT (instead of POLLERR) when
connect() is done async and the connection is refused. Therefore always check
for the socket error state using getsockopt (..., SO_ERROR, ...) after a
connection attempt.
gst-libs/gst/rtsp/gstrtspconnection.c