Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Socket over HTTPS Proxy

I have an Audio Streaming Application which works fine.
I am using Sockets to Stream from a public Server to Clients which can be even behind a Firewall/NAT.

My current issue is that i wanna support Proxys, especially HTTPS Proxys like Squid. In that case i am not really good in how to write my application according to their needs. The Problem is that a HTTPS Proxy can not interact with standard JAVA Sockets, which keep sending data continuously.

Can someone help me with this issue?
0
woigl
Asked:
woigl
  • 3
3 Solutions
 
ksivananthCommented:
0
 
contactkarthiCommented:
0
 
woiglAuthor Commented:
well, i read the examples and think they are good. But please allow me two more questions:

1.) if i am in SSL - can the proxy see my content? Like i wann send plain Audio Byte Data over it.

2.) How long the socket keeps open after i succesful finihsed the handshake? because i want to keep streaming for maybe an hour or two? is the socket BI-Directional?
0
 
ksivananthCommented:
>>if i am in SSL - can the proxy see my content? Like i wann send plain Audio Byte Data over it.

the data will ne encrypted the Proxy will not be able to read it!

>>How long the socket keeps open after i succesful finihsed the handshake? because i want to keep streaming for maybe an hour or two?

you can set the connection to keep alive but there is no gaurantee that it will keep alive for any time you want. You may have to have a mechanism so that even if the connection broken, it can retransmit the data from where it broke!
0
 
ksivananthCommented:
>>is the socket BI-Directional?
 
its based on how you implements the server! but defenitely it will suport one req ans resp!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now