I am fine with changing the name. I let this thread sit some time
On 10/06/2009 10:52 AM, Joe Orton wrote:
> On Sun, Oct 04, 2009 at 12:09:58PM -0000, firstname.lastname@example.org
>> Author: rpluem
>> Date: Sun Oct 4 12:09:57 2009
>> New Revision: 821524
>> URL: http://svn.apache.org/viewvc?rev=821524&view=rev
>> * Add apr_socket_is_connected to detect whether the remote side of a socket
>> is still open. The origin of apr_socket_is_connected is r473278 from
>> in httpd.
> The naming is not good here. A TCP socket is "connected" after the
> connection is successfully established via connect(), up until it is
> destroyed. From the name, I would expect this function to do would be
> to say whether a non-blocking connect() has completed.
> This function will reliably tell you that the receive part of the socket
> has been shut down by the peer, in the case that the socket's read
> buffer is empty. Notably the socket may still be "connected" in that
> state, albeit in half-duplex mode.
> I'd suggest a name like: