AdoNetCore.AseClient icon indicating copy to clipboard operation
AdoNetCore.AseClient copied to clipboard

Driver doesn't make use of CommandTimeout

Open senseibaka opened this issue 5 years ago • 1 comments

Describe the bug Going through the references, it looks like we store it, but don't use it

Expected behavior It should probably be used 🤷‍♂ 🤷‍♀

Environment

  • All of them

senseibaka avatar Sep 26 '19 07:09 senseibaka

There is a way for clients to tell the server that a command has been cancelled. Obviously in a timeout scenario it's not clear if the server is even accessible, so not sure that this is an appropriate response. But in a situation where the client has told the server to run a long process, and then the client decides to time it out, it would be good to let the server know so it could terminate the job and recover resources.

3.5. Attentions

The client can cancel the current request by sending an attention to the server. Once the client sends an attention, the client reads until it gets an attention acknowledgment. After sending an attention to a server the client will discard any data received until it receives an attention acknowledgment.

TDS 5.0 attentions are sent using the non-expedited data transfer service provided by the transport provider. Earlier versions of TDS sent attentions using the expedited data transfer service if it was provided by the transport provider.

Expedited attentions will still be supported by clients and servers that implement 5.0 TDS so that they can continue to communicate with earlier versions of TDS.

Source 3.5 Attentions, TDS 5.0 Functional Specification, Version 3.4

c-j-hughes avatar Sep 27 '19 00:09 c-j-hughes