重复请求到WCF http服务 [英] Duplicate Requests to a WCF Http service

查看:181
本文介绍了重复请求到WCF http服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个桌面应用它通过大量的WCF终点会谈到服务器。我们偶尔会收到一些终点重复请求。我们已经花了很多时间研究一下为什么客户端code可能会发送重复请求我们认为这是pretty的同时锁定了。然而,我们继续收到重复的请求。

We have a desktop app which talks to the server via a number of WCF end points. We occasionally receive duplicate requests at some end points. We've spent a lot time examining why the client code might send duplicate requests we think this is pretty well locked down now. However, we continue to receive duplicate requests.

难道还有什么理由,除了委托人有其他明确的发送两个请求,我们收到重复的http请求?我已自动脑袋有些HTTP客户端后,接收500结果code重试,但我不认为这是.NET http客户端的情况。

Could there be any reason, other than the client explicitly sending two requests, that we receive duplicate http requests? I've head some http clients automatically retry after a receiving a 500 result code, but I don't think this is the case for the .NET http client.

推荐答案

有内置的WCF堆栈没有重试逻辑,除了与MSMQ绑定。因此,我不得不得出结论,您的客户端发送一个重复的请求。

There is no retry logic built into the wcf stack, except for the bindings with msmq. I would therefore have to conclude that your client is sending a duplicate request.

这篇关于重复请求到WCF http服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆