Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1110735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:26:23+00:00 2026-05-17T02:26:23+00:00

I have a simple WCF service that i’m communicating with Asynchronously. The thing i

  • 0

I have a simple WCF service that i’m communicating with Asynchronously.

The thing i don’t like is when calling the EndServiceMethod(IASyncResult)

if i forget to call the Close() method, the service will actually leave the connection open and then all remaining connections will fail after the wcf reaches it’s max concurrent connections count with timeout exceptions.

I’ve tried using the [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall)]
attribute to the Service contract, which doesn’t appear to have any effect on the state of the connection from the service.

Perhaps I’ve implemented it incorrectly?

Any ideas or suggestions.

I’m trying to locate a behavior pattern for the WCF that allows the clients to make a request, and then the server to respond to the request and then assume that the connection is finished and can be terminated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:26:24+00:00Added an answer on May 17, 2026 at 2:26 am

    This is actually a tricky problem.

    On the one hand if you do not close the connection it will remain open until it times out (1 min), under load you will hit the max connections (default 10).

    On the other hand you are calling the services asynchronously, so if you close the connect before the callback is received, the callback will be lost.

    There are a few things that you could try:

    • increase the max connections
    • close the connection in the callback handler
    • reduce the length of the timeout
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple WCF service that I would like to expose publicly.
I have a simple WCF Service that needs to handle large datastreams, so I
I have a simple WCF service that I call server side from code behind
I have written a simple WCF service that accepts and stores messages. It works
i have a simple xml file in a wcf service that i am trying
I have a simple WCF service: public Order[] GetOrdersByStatus(int statusid) { OrderService os =
I have created a simple wcf service which used the WCF Service Library template.
I have a WCF Service that I have boiled down to next to nothing
I've got a simple WCF service that works great on localhost - consumed by
I have a WCF service that works ok if I create the service without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.