duplex

Detecting Client Death in WCF Duplex Contracts

倾然丶 夕夏残阳落幕 提交于 2019-12-17 07:08:05
问题 I'm trying to build a SOA where clients can perform long running queries on the server and the server responds using a callback. I'd like to be able to detect if the client disconnects (through user initiated shutdown, unhandled exception or loss of network connectivity) so that the server can choose to cancel the expensive request. I'm testing a variety of failure cases but I can't seem to get certain event handlers to fire. Tested Failure Cases: Killing the Client Process After the request.

计算机到交换机的某个端口state显示down-有可能是端口duplex模式错误

穿精又带淫゛_ 提交于 2019-12-14 07:28:13
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在配置模拟器,改了交换机上的端口0/1配置后,交换机到PC的状态由原来的导通变成了掉线状态。查了很久,原来是端口的duplex问题,设置成full了。 虽然PC端的duplex设置是auto,但其实以half的模式运行。 如果这个时候交换机配置的duplex是full则两个模式不匹配无法进行数据交互。切换回来就可以了。 结果如下: 来源: oschina 链接: https://my.oschina.net/u/4082616/blog/3142904

Memory leak in WCF (Duplex) on Server

时间秒杀一切 提交于 2019-12-13 12:08:15
问题 Hi have quite a problem with an Service running WCF in duplex-mode. It leaks memory (not much but it's about 80MB a day) and after having a memory-profiler running alongside the service for 24 hours I found most of the memory sitting in byte[] referenced by quite a mess but I most references end in something like this: and the "root" looks like this: I too see lots of ServiceChannel (around 200) comming (I think) from the callback-channels. I'm rather sure that I only hold 1 of those for each

Node - how can i pipe to a new READABLE stream?

只谈情不闲聊 提交于 2019-12-13 07:23:04
问题 My app is supposed to take Web Audio streamed from the client, encode it as MP3, before sending it back out to clients via WebSocket. I can currently encode and pipe to a file like this: inbound_stream.pipe(encoder).pipe(fs.createWriteStream('audio.mp3')); And if I already have a file on the server I can do this: var mp3File = fs.createReadStream('audio.mp3'); mp3File.on('data', function(buffer){ io.sockets.emit('audio', { buffer: buffer }); }); However, I want to access the encoded chunks in

wcf callback reference

喜欢而已 提交于 2019-12-13 05:05:21
问题 I have a desktop app with a duplex WCF service, but I have some troubles using the callback. The service is started as following in main of program.cs: ServiceHost svcHost = new ServiceHost(typeof(PeriodicService)); svcHost.Open(); Console.WriteLine("Available Endpoints :\n"); svcHost.Description.Endpoints.ToList().ForEach(endpoint => Console.WriteLine(endpoint.Address.ToString() + " -- " + endpoint.Name)); For the service I created a subscribe function where the callbackchannel is saved in a

WCF two way HTTP communication to bypass firewalls

好久不见. 提交于 2019-12-12 19:39:56
问题 I want to use WCF to enable two way communication without opening a port on the client. I'm developing something like a P2P application (similar to teamviewer/logmein) where you don't need to open ports to communicate. How do I accomplish two way communication through HTTP/HTTPS without the need to open a port in the client? Note : Port 80 can be opened in the server...no issues on that. Thanks 回答1: Well those systems you mention work as follows. They first try to make client A and client B

Android/iOS client consumes WCF Duplex service

浪尽此生 提交于 2019-12-12 04:48:52
问题 I am trying to build a server/web service which provides APIs to Android/iOS client. I am using WCF service and clients can send request to server successfully. Now, I am going to make server enable to ping client to notify that there some changes in server and client need to synchronize data. The question is: Is it possible to enable my server to ping client (Android/iOS), I knew that it is possible for Windows client by using wsDualHttpBinding but I am not sure about iOS and Android client.

WCF Duplex service and Android client? Any possibilities

怎甘沉沦 提交于 2019-12-12 03:47:51
问题 I have created a WCF duplex service and client in .NET and its working fine and its pretty good also. Now I wish to make an Android client. I have used kSoap previously for webservices and those are good for client to service connections. But in the case of duplex communication in which I need the service to sent message to client , I dont know how to implement. 回答1: Unfortunately none of the duplex bindings are interoperable At this point polling might be your simplest option. Further down

Can I use JavaScript to subscribe to WCF WSDualHttpBinding?

醉酒当歌 提交于 2019-12-11 12:03:26
问题 I have a web site that needs data to be pushed to it. Unfortunately, I'm not aware of any other methods besides using HTML 5 WebSockets (I can't garauntee my clients will have HTML5 browers) and Comet (I'm not using java/tomcat). I am not a big fan of using server-side ASP.NET for this particular project, and would prefer to use ASP.NET MVC or something like it. Is it possible to tie JavaScript in with a duplex service? 回答1: Well actually you can leverage the pollingduplex binding used for

WCF CustomBinding + Duplex+ BinaryEncoding + No Security Cannot Call back

此生再无相见时 提交于 2019-12-11 06:47:07
问题 I have a Duplex service (Singleton), which used to work with WSDualHttpBinding, and after changing it to duplex CustomBinding to support BinaryEncoding for performance reasons, it stopped working. The problem traces to GetCallBackChannel always returns with same HashCode (within that service instance) for all the client requests and the List thinks it already exists in the subscribed channels and wont add to the Subscribers list. I am using C# 3.5 Please suggest a solution.. Thanks in Advance