mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Only one outgoing server connection is supported.
This commit is contained in:
parent
2ae2399f31
commit
806c8de463
@ -1273,12 +1273,13 @@ void Worker::Exec()
|
||||
return m_shutdown.load( std::memory_order_relaxed );
|
||||
};
|
||||
|
||||
auto lz4buf = std::make_unique<char[]>( LZ4Size );
|
||||
for(;;)
|
||||
{
|
||||
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
|
||||
if( !m_sock.Connect( m_addr.c_str(), "8086" ) ) continue;
|
||||
if( m_sock.Connect( m_addr.c_str(), "8086" ) ) break;
|
||||
}
|
||||
|
||||
auto lz4buf = std::make_unique<char[]>( LZ4Size );
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> t0;
|
||||
|
||||
uint64_t bytes = 0;
|
||||
@ -1407,7 +1408,6 @@ void Worker::Exec()
|
||||
close:
|
||||
m_sock.Close();
|
||||
m_connected.store( false, std::memory_order_relaxed );
|
||||
}
|
||||
}
|
||||
|
||||
void Worker::ServerQuery( uint8_t type, uint64_t data )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user