Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

IsClientConnected (possible) bug
siroman73
#1 Posted : Tuesday, February 21, 2012 9:51:12 AM(UTC)
Groups: Member
Joined: 2/21/2012(UTC)
Posts: 4

Hi all,
I'm using UWS Pro since some months, and now I'm experiencing a problem with context.Response.IsClientConnected property, in the sense that it never goes false, even if the client browser is closed or navigates to another page. Note that in IIS the property goes false correctly. I need to correctly evaluate this property because I use it to send a mjpeg images stream as long as the client stays connected.
Thank you in advance
Simone
Ultidev Team
#2 Posted : Tuesday, February 21, 2012 12:00:00 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

It's something we are aware of, but have no immediate solution for, because HttpListenerXXX classes we use to get incoming requests (and which are managed proxy for http.sys driver functionality) have no access to the connection state information.

We'll re-investigate in a week or so, after we get build 15 out of the door.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
siroman73
#3 Posted : Wednesday, February 22, 2012 11:50:09 AM(UTC)
Groups: Member
Joined: 2/21/2012(UTC)
Posts: 4

Ok, thankyou for the reply. Two more questions:
- could we expect https support for build 15?
- And, regarding the IsClientConnected bug, I'm not sure, but I think it worked correctly in the old Cassini (if this can help you investigate).
Bye
Simone
Ultidev Team
#4 Posted : Wednesday, February 22, 2012 1:17:38 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Simone.

Yes, build 15 with SSL/HTTPS support is only a few days away. We are hoping to have it out there on Monday, if we don't find anything during the current regression testing.

In Cassini we had our own listening component, which used sockets straight up. That allowed us to have full access to the state of the TCP connection. In UWS we are using http.sys kernel driver for listening, which let us achieve lots of things in UWS, including port sharing, SSL support, comprehensive request parsing, etc. Http.sys is also used by IIS and IIS Express. .NET Framework provides managed API to access http.sys (a.k.a. http server API) in the form of HttpListenerRequest, HttpListenerResponse and HttpListenerContext classes. Limitations of theses classes dictate limitations of the UWS. One of the limitations is that these classes don't appear to provide access to the connection state.

After build 15 is out, we'll try to dig deeper into http service API to see whether we can find a way to get to the connection state. We certainly welcome help from our users in improving our free product. We will be very thankful if you could pitch in help with the API research required to solve this problem.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
siroman73
#5 Posted : Thursday, February 23, 2012 10:11:46 AM(UTC)
Groups: Member
Joined: 2/21/2012(UTC)
Posts: 4

That's a great news, SSL support!
About the IsClientConnected problem keep in mind that, even if IIS uses http.sys, the property is correctly evaluated by IIS, so the good news is that a way exists.
Thank you for your efforts
Best Regards
Simone
siroman73
#6 Posted : Thursday, February 23, 2012 12:56:03 PM(UTC)
Groups: Member
Joined: 2/21/2012(UTC)
Posts: 4

Grabbed and quick test done. At first sight it seems all right.
Thank you for the overview
bye
Simone
Ultidev Team
#7 Posted : Thursday, February 23, 2012 12:57:35 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Super! Please let us know if something is not quite OK.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#8 Posted : Monday, January 8, 2018 9:06:23 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.