Skip to content

Commit c357ea1

Browse files
committed
DisplayDriverServer : Create IPv6 endpoint
This avoids delays on Windows, where the ClientDisplayDriver was first trying a V6 connection and then only making a V4 connection if that failed (after a timeout).
1 parent e644618 commit c357ea1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Changes

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
10.5.x.x (relative to 10.5.6.0)
22
========
33

4+
5+
Improvements
6+
------------
7+
8+
- DisplayDriverServer : Fixed delays connecting to the server on Windows.
9+
410
10.5.6.0 (relative to 10.5.5.0)
511
========
612

@@ -11,7 +17,6 @@ Improvements
1117
- `IECoreGL::ColorTexture`: Added new constructor that accepts an argument specifying the internal storage format to use.
1218

1319

14-
1520
10.5.5.0 (relative to 10.5.4.2)
1621
========
1722

src/IECoreImage/DisplayDriverServer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class DisplayDriverServer::PrivateData : public RefCounted
175175

176176
void openPort( DisplayDriverServer::Port portNumber )
177177
{
178-
m_endpoint = boost::asio::ip::tcp::endpoint( tcp::v4(), portNumber );
178+
m_endpoint = boost::asio::ip::tcp::endpoint( tcp::v6(), portNumber );
179179
m_acceptor.open( m_endpoint.protocol() );
180180
#ifdef _MSC_VER
181181
m_acceptor.set_option( boost::asio::ip::tcp::acceptor::reuse_address( false ) );
@@ -184,6 +184,7 @@ class DisplayDriverServer::PrivateData : public RefCounted
184184
#else
185185
m_acceptor.set_option( boost::asio::ip::tcp::acceptor::reuse_address( true ) );
186186
#endif
187+
m_acceptor.set_option( boost::asio::ip::v6_only( false ) );
187188
m_acceptor.bind( m_endpoint );
188189
m_acceptor.listen();
189190
}

0 commit comments

Comments
 (0)