hang

AWS S3 GetObjectAsync Hangs/Times Out

自古美人都是妖i 提交于 2020-01-04 07:03:12
问题 Note: Answering my own question to help others in the future. I'm following the official documentation to get a text file from an S3 bucket and it hangs: static async Task ReadObjectDataAsync() { string responseBody = ""; try { GetObjectRequest request = new GetObjectRequest { BucketName = bucketName, Key = keyName }; //THIS NEXT LINE HANGS!!!! using (GetObjectResponse response = await client.GetObjectAsync(request)) using (Stream responseStream = response.ResponseStream) using (StreamReader

AWS S3 GetObjectAsync Hangs/Times Out

与世无争的帅哥 提交于 2020-01-04 07:02:53
问题 Note: Answering my own question to help others in the future. I'm following the official documentation to get a text file from an S3 bucket and it hangs: static async Task ReadObjectDataAsync() { string responseBody = ""; try { GetObjectRequest request = new GetObjectRequest { BucketName = bucketName, Key = keyName }; //THIS NEXT LINE HANGS!!!! using (GetObjectResponse response = await client.GetObjectAsync(request)) using (Stream responseStream = response.ResponseStream) using (StreamReader

WebClient DownloadFileAsync hangs

南笙酒味 提交于 2020-01-03 10:45:41
问题 Good day. I'm working on file downloader class using DownloadFileAsync. In normal situations everything works fine. But when I'm downloading file and disable network connection, downloading progress is just stops for infinite time, without raising any errors or calling any callbacks. Any ideas how to handle this situation? Many thanks. _client.Proxy = WebRequest.DefaultWebProxy; _client.DownloadProgressChanged += (sender, argv) => { actionCallback(argv.ProgressPercentage); } _client

Infrequent hangs in a multi-threaded C# console application when using Console.Writeline() or Console.Write()

一世执手 提交于 2020-01-03 08:15:27
问题 I have written a console application that makes use of console.write and console.writeline to provide some logging. The application is a server application that uses asynchronous beginacceptconnection() and beginread() ( Sockets ) for communication. Occasionally i get reports of it hanging and from the limited debug i can do i am able to see the problem being Console.Writeline() or Console.write(). Being multi-threaded I have been careful to have a lock around the logging class so only one

mpi4py hangs when trying to send large data

℡╲_俬逩灬. 提交于 2020-01-02 04:27:07
问题 i've recently encountered a problem trying to share large data among several processors using the command 'send' from the mpi4py-library. Even a 1000x3 numpy float array is too large to be sent. Any ideas how to overcome this problem? thx in advance. 回答1: I've found a simple solution. Divide data into small enough chunks... 回答2: I encountered this same problem with Isend (not with Send ). It appears that the problem was due to the sending process terminating before the receiver had received

JavaScript execution hangs page momentarily

╄→гoц情女王★ 提交于 2020-01-01 10:47:23
问题 I have a web application which uses jQuery/JavaScript heavily. It holds a large array in memory, and the user filters it by typing in a textbox. Problem: When the filtering algorithm runs, the application becomes non-responsive and the browser may even ask the user whether to let the script continue. Optimally, I would like the filter function to run in a separate thread , to avoid non-responsiveness. Is this possible in any way? Alternatively, I would like to show a rotating hourglass or

RequestAcquireState Hanging on .NET 4.5.1 IIS8

人走茶凉 提交于 2020-01-01 05:21:08
问题 Under heavy load or when using jQuery's ajax abort function, we see requests build up in IIS to the point where no-one can connect and the entire site hangs, forcing a recycle. A similar post from 3 years ago had a similar issue with .NET 4.5 and IIS 7.5 but Microsoft have stated this was fixed in 4.5.1 and released a patch for 4.5. This problem on Windows Server 2012R2 using IIS 8 when trying to use State Server and even more so when using State Server on development machines running Windows

sys.stdin.readlines() hangs Python script

感情迁移 提交于 2019-12-29 06:09:50
问题 Everytime I'm executing my Python script, it appears to hang on this line: lines = sys.stdin.readlines() What should I do to fix/avoid this? EDIT Here's what I'm doing with lines : lines = sys.stdin.readlines() updates = [line.split() for line in lines] EDIT 2 I'm running this script from a git hook so is there anyway around the EOF? 回答1: This depends a lot on what you are trying to accomplish. You might be able do: for line in sys.stdin: #do something with line Of course, with this idiom as

Is it possible to have multiple PyPlot windows? Or am I limited to subplots?

时光怂恿深爱的人放手 提交于 2019-12-28 04:00:10
问题 I'm not sure how to word my question more clearly. Basically, is PyPlot limited to one instance/window? Any hack or workaround I try either causes my program to freeze or for the second pyplot window to be queued until the first one is closed. 回答1: Sure, just open a new figure: import matplotlib.pyplot as plt plt.plot(range(10)) plt.figure() plt.plot(range(10), 'ro-') plt.figure(), plt.plot(...) plt.show() # only do this once, at the end If you're running this in the default python

PHPMailer - Hangs

眉间皱痕 提交于 2019-12-25 17:14:28
问题 I am trying to send an email via PHPMailer. I have unzipped the PHPMailer file to the server and have this code. I have the extra 'require' as it has been suggested in other posts regarding hanging when sending. It is reading the code as if I miss out the 'body' I get an error message saying so. I have tried multiple examples of different code as below and all hang. I have added and altered and now given up! I have a simple button that calls this code and the browser (tried multiple) just