.NET WCF The underlying connection was closed

Lacike/ June 4, 2011/ Software & Development

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

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