Adding AcceptInfo into connectionAccepted of AsyncSocket callback
Summary: AsyncServerSocket works like this: 1) a socket is accepted from the fd 2) the socket is pushed into the socket queue 3) the connectionAccepted() callback is called with the socket is dequeued Things happening before connectionAccepted() are like black box to us currently. For example the time taken for a socket to sit in the socket queue is completely unknown. Adding this AcceptInfo into the callback could allow us to pass more information to downstream for instrumenting. This diff only pass timestamp of before the socket is being pushed into the queue. Reviewed By: yfeldblum Differential Revision: D31633582 fbshipit-source-id: 66072955318388c2410b48313d3d54078edce478
Showing
Please register or sign in to comment