pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.43k stars 2.17k forks source link

There is no way to resolve host in advance and connect to HTTPS server with SNI. #4395

Open alexey-milovidov opened 10 months ago

alexey-milovidov commented 10 months ago

This is a continuation of #3456, which was mistakenly closed by the offensive "stale" bot. This is a continuation of #3123, which was mistakenly closed by the offensive "stale" bot.

It does not matter if four years have passed. The issue is still relevant.

micheleselea commented 10 months ago

I think it's possible just using this

Poco::Net::SocketAddress sa(IP-ADDRESS, PORT); Poco::Net::SecureStreamSocket ss(sa, "DNS FOR SNI");

aleks-f commented 10 months ago

mistakenly closed by the offensive "stale" bot.

It is not a mistake and the bot is there not to offend anyone, but rather to (1) remind OP what's going on with their issue, and (2) to help us remain sane by keeping the number of opened issues reasonable.

It does not matter if four years have passed. The issue is still relevant.

It does not matter how many years passes - if nobody cares enough to send a fix, the issue will eventually be automatically staled and closed. And I mean a proper fix, not a workaround hack.

Your turn - send the fix and we'll include it in a future release.

aleks-f commented 10 months ago

I think it's possible just using this

Poco::Net::SocketAddress sa(IP-ADDRESS, PORT); Poco::Net::SecureStreamSocket ss(sa, "DNS FOR SNI");

That's not what the issue is about; the problem happens on reconnect