How can I receive messages using over http without MSMQ
        Posted  
        
            by pduncan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by pduncan
        
        
        
        Published on 2010-04-03T13:03:37Z
        Indexed on 
            2010/04/03
            14:03 UTC
        
        
        Read the original article
        Hit count: 273
        
I need a reliable messaging framework that runs over http/https (due to client security requirements) and that doesn't use MSMQ (because some clients will use Windows XP Home). The clients only need to be able to receive messages, not send them.
We already have a message queue on the server for each user, and the receivers have been getting messages by connecting to an HttpHandler on the server and getting a Stream from
WebResponse.GetResponseStream()
We keep this stream open, and pull messages off of it using Stream.Read(). This MOSTLY works, but Stream.Read() is a blocking call, and we can't reliably interrupt it. We need to be able to stop and start the receiver without losing messages, but the old stream often hangs around, even after we call Thread.Abort on its thread.
Any suggestions?
© Stack Overflow or respective owner