You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the CPP2 ThriftServer, does the HandlerCallback run the exception() and result() calls in the correct eventbase thread (corresponding to socket) or does that need to be taken care of as well, in case we have a context switch.
Thanks !
The text was updated successfully, but these errors were encountered:
By default they serialize in the current thread and send the raw bytes to the socket on the EB thread. This is all handled automatically, you just need to call result() or exception() directly in your handler.
Thanks, one other question I had was that for the AsyncClient - this does not seem to be the case, so the caller of the function needs to be aware of calling the thrift call with a runInEventBase() since the socket operations are performed inline. Are there any variants in the AsyncClient in CPP2 which do the runInEventBase trick for free ?
When using the CPP2 ThriftServer, does the HandlerCallback run the exception() and result() calls in the correct eventbase thread (corresponding to socket) or does that need to be taken care of as well, in case we have a context switch.
Thanks !
The text was updated successfully, but these errors were encountered: