Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client-side timeout effecting try... finally call

John Farrel
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web service which contains a try.. finally call to ensure a pooled resource is freed.
The web service content can sometimes execute a bit slowly... over 30 seconds.

What I am finding is that if the client is set to timeout, and does before the call is complete the finally block is not called and the resource does not get freed.

Is this expected behaviour? I really did not expect this to happen.

-- later --

my mistake... it does get to the finally block... eventually.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic