Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an execution timeout for WCF operations marked as OneWay?

Does the OneWay operations in WCF service execute as long as the operation is complete?

By my experiment, I think there is no timeout. I was able to run an operation for half an hour. (I closed after that)

Can someone experienced in WCF answer this? If there is a timeout, where can I specify it

like image 307
Sandeep Avatar asked Sep 03 '10 14:09

Sandeep


2 Answers

OneWay operations don't wait for a Reply Message. It just writes data to the network connection and returns. So, the only "wait time" would be the time required to write the message to the network.

Be aware though that WCF can still block the client (Clients Blocking with One-Way Operations):

this means that any problem writing the data to the transport prevents the client from returning. Depending upon the problem, the result could be an exception or a delay in sending messages to the service.

Edit: Regarding timeout, they are set on the binding. If your operation can't perform his "Send Message", it can still timeout.

like image 59
Jeff Caron Avatar answered Sep 30 '22 12:09

Jeff Caron


There is no timeout. You have to handle it by yourselves in running operation. Timeouts are related to working with channels but in case of one way operation the message is received and passed to operation and no more interaction with channel will ever occure.

like image 33
Ladislav Mrnka Avatar answered Sep 30 '22 14:09

Ladislav Mrnka