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

  • SEARCH
  • Home
  • 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 8501225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:09:03+00:00 2026-06-11T01:09:03+00:00

I have the following code on WCF Service and I am using basicHttpBinding public

  • 0

I have the following code on WCF Service and I am using basicHttpBinding

public class Service1 : IService1
{
        public string GetData(int value)
        {
            // Sleep for a minute
            System.Threading.Thread.Sleep(60000);
            return string.Format("You entered: {0}", value);
        }
}

I have the following code on client and the client has a “sendTimeout” of only 1 second (I want the client to timeout before the server responds)

Service1Client clientProxy = new Service1Client();
        try
        {

            Console.WriteLine(clientProxy.GetData(10));
            clientProxy.Close();
        }            
        catch (TimeoutException)
        {
            if (((ICommunicationObject)clientProxy).State == CommunicationState.Opened)
            {
                // In the case of TimeoutException the state is not faulted and 
                // "close" is invoked
                clientProxy.Close();
            }
        }        

What I see in IIS log for the reqeust is:

2012-09-07 07:22:51 ::1 POST /SimpleTimeWCF/Service1.svc – 80 – ::1 –
200 0 64 60015

You can observe that the status is 200 and sc-win32-status is 64 and time-taken is 60015 (around a minute).

While the WCF service is busy processing the requesting, client has invoked clientProxy.Close. What is expected behavior on the server?

What is the expected behavior of “client proxy close” method invocation on the server when using basicHttpBinding?

Does the behavior change when using other bindings? Ex: Net TCP binding? When we use net tcp binding does invoking “close” on proxy on end the “tcp connection” established with the server?

PS: Note that I have set Enable HTTP Keep-alive on IIS to false

  • 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-06-11T01:09:05+00:00Added an answer on June 11, 2026 at 1:09 am

    The service will get the request from the client. It will process the request, taking 60 seconds. The client has “given up” in the mean time, but with HTTP it has no way of notifying the service that the previous request is not needed anymore.

    In the end, the service:

    • will finish up the way it should, giving HTTP Status 200 “OK”
    • will not be able to respond to the client because it already timed out, ending in code 64 “ERROR_NETNAME_DELETED”
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following code for updating user's column public void UpdateLastModifiedDate(string username) { using
I have the following code in a WCF Service that returns a string, and
I have the following XML Parsing code in my application: public static XElement Parse(string
I have created a WCF WebHttp Service using the following article as a guideline..
Background information: I have the following code in a WCF service. GetDataTable returns a
I have following working code (for consuming a WCF service). SecurityRoleWebService is a namespace.
I have an ajax enabled WCF service method : [OperationContract] public string Test(string name)
I have a WCF Rest service as per the code snippet below [ServiceContract] public
I have a WCF service using BasicHttpBinding with Windows authentication. Most clients are domain
I have following wrapper to help me manage the wcf client lifetime: public class

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.