Tag Archives: timeout

.NET WCF The underlying connection was closed

lacike/ June 4, 2011/ Software & Development/ 0 comments

Recently, I spent a few hours solving an issue with sample WCF (Windows Communication Foundation) where my connection from client was closed after the result was received. The error message was following: The underlying connection was closed: The connection was closed unexpectedly. There are plenty of blogs explaining how I have to change the client and server configuration (maxRequestLength, maxBufferSize

Read More

Python start process with timeout

lacike/ January 5, 2011/ Software & Development/ 0 comments

The typical scenario to start process and wait for the result takes only a few seconds to write  in other object oriented languages (other than Python) It looks like: Process p = new Process(command = “my command”, redirect_output = True) p.Wait(timeout = 10) return p.stdout.result In Python there is no such functionality provided. You have to check the process using

Read More