We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public IAsyncResult BeginPutObject(string bucketName, string key, string fileToUpload, ObjectMetadata metadata, AsyncCallback callback, object state) { if (!File.Exists(fileToUpload) || Directory.Exists(fileToUpload)) throw new ArgumentException(String.Format("Invalid file path {0}.", fileToUpload)); metadata = metadata ?? new ObjectMetadata(); SetContentTypeIfNull(key, fileToUpload, ref metadata); IAsyncResult result; //TODO 这里释放了content导致ServiceClientImpl报错 using (Stream content = File.OpenRead(fileToUpload)) { result = BeginPutObject(bucketName, key, content, metadata, callback, state); } return result; }
ServiceClientImpl报错位置
if (async) { webRequest.BeginGetRequestStream( (ar) => { using (var requestStream = webRequest.EndGetRequestStream(ar)) { //TODO data已被释放 IoUtils.WriteTo(data, requestStream, webRequest.ContentLength); } asyncCallback(); }, null); }
The text was updated successfully, but these errors were encountered:
和我报的是一个吧? #32
Sorry, something went wrong.
@nishizhen 不是,这个是他的BUG!这里处理太慢了,我自己fork了发布了一个到NUGET去用了
请教一下,怎么修复的。 我现在使用多线程去GetObjects也出现了报错
No branches or pull requests
ServiceClientImpl报错位置
The text was updated successfully, but these errors were encountered: