Close Incoming Connection ASAP#508
Conversation
Add async HTTP response completion for non-invoke activities in TeamsBotApplication. Introduce SendingActivity log method and log activity sends in ConversationClient for better traceability.
Updated logger.SendingActivity to use null-conditional operator, preventing potential NullReferenceException if logger is null.
…is "agents", use "acf" as the conversation ID in outgoing URLs. Add unit tests to verify correct URL formatting and query string handling for agents channel scenarios.
|
Nice direction here — closing the connection early for non-invoke activities is a real improvement, and the invoke path is correctly left synchronous. Two things I wanted to raise before this comes out of draft: Customer retry behavior — today, if a bot throws during processing, Teams sees a 500 and retries the delivery. With this change, Teams gets 200 (or whatever status is on the response at the time of Cancellation token scope — once Also noticed the |
We can close the incoming connection for non invoke activities