]> granicus.if.org Git - libevent/commit
On connect, call only one of BEV_EVENT_CONNECTED or writecb.
authorNick Mathewson <nickm@torproject.org>
Wed, 19 Aug 2009 20:55:25 +0000 (20:55 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 19 Aug 2009 20:55:25 +0000 (20:55 +0000)
commitf65b8b0964bfd2653b5c6c9fbf1196310b77e084
tree907f7ea2e2b6961228103b593f0a0c1b7f219666
parent2c1b0e442826baec932e614e8c730fd13ab3cd07
On connect, call only one of BEV_EVENT_CONNECTED or writecb.

Previously, if we had a socket bufferevent in connect state, we'd send
both of these to indicate that the connection was done.  That was broken
since the point of adding BEV_EVENT_CONNECTED was so that we could
distinguish "we're connected" and "we wrote something".

Now, writecb is called only when
   A) the connection finished but the user never put the socket into a
      "connecting" state, or
   B) data was actually written.

svn:r1425
ChangeLog
bufferevent_sock.c