开发者社区> 问答> 正文

oss访问 远程主机强迫关闭了一个现有的连接

mychina269 2016-03-24 17:41:02 3969

Unable to write data to the transport connection: 远程主机强迫关闭了一个现有的连接。.
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at Aliyun.OSS.Util.IoUtils.WriteTo(Stream orignStream, Stream destStream, Int64 totalSize)
at Aliyun.OSS.Common.Communication.ServiceClientImpl.SetRequestContent(HttpWebRequest webRequest, ServiceRequest serviceRequest, Boolean async, OssAction asyncCallback)
at Aliyun.OSS.Common.Communication.ServiceClientImpl.SendCore(ServiceRequest serviceRequest, ExecutionContext context)
at Aliyun.OSS.Common.Communication.ServiceClient.Send(ServiceRequest request, ExecutionContext context)
at Aliyun.OSS.Common.Communication.RetryableServiceClient.SendImpl(ServiceRequest request, ExecutionContext context, Int32 retryTimes)
at Aliyun.OSS.Common.Communication.RetryableServiceClient.Send(ServiceRequest request, ExecutionContext context)
at Aliyun.OSS.Commands.OssCommand.Execute()
at Aliyun.OSS.OssClient.PutObject(String bucketName, String key, Stream content, ObjectMetadata metadata)
at Aliyun.OSS.OssClient.PutObject(String bucketName, String key, Stream content)
at WindowsFormsApplication1.Form1.button3_Click(Object sender, EventArgs e)

对象存储
分享到
取消 提交回答
全部回答(1)
  • wq_crazyboy
    2019-07-17 18:35:40

    OSS的安全防护有防盗链、ACL权限控制和跨域控制的功能,是没有根据IP进行限制的,从上面的情况上看是该用户到OSS的连接被reset导致无法连接,这种问题如果可以复现的话建议可以提交工单让阿里云的工程师和该用户一起抓包看下是哪里发的reset包导致连接中断的。

    0 0
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章
相似问题