@@ -977,13 +977,13 @@ const USHORT PORT_async = 0x0002; // Port is asynchronous channel for events
977977const USHORT PORT_no_oob = 0x0004 ; // Don't send out of band data
978978const USHORT PORT_disconnect = 0x0008 ; // Disconnect is in progress
979979const USHORT PORT_dummy_pckt_set= 0x0010 ; // A dummy packet interval is set
980- const USHORT PORT_partial_data = 0x0020 ; // Physical packet doesn't contain all API packet
980+ // const USHORT PORT_partial_data = 0x0020; // Physical packet doesn't contain all API packet
981981const USHORT PORT_lazy = 0x0040 ; // Deferred operations are allowed
982982const USHORT PORT_server = 0x0080 ; // Server (not client) port
983983const USHORT PORT_detached = 0x0100 ; // op_detach, op_drop_database or op_service_detach was processed
984984const USHORT PORT_rdb_shutdown = 0x0200 ; // Database is shut down
985985const USHORT PORT_connecting = 0x0400 ; // Aux connection waits for a channel to be activated by client
986- const USHORT PORT_z_data = 0x0800 ; // Zlib incoming buffer has data left after decompression
986+ // const USHORT PORT_z_data = 0x0800; // Zlib incoming buffer has data left after decompression
987987const USHORT PORT_compressed = 0x1000 ; // Compress outgoing stream (does not affect incoming)
988988const USHORT PORT_released = 0x2000 ; // release(), complementary to the first addRef() in constructor, was called
989989
@@ -1041,6 +1041,9 @@ struct rem_port : public Firebird::GlobalStorage, public Firebird::RefCounted
10411041 USHORT port_protocol; // protocol version number
10421042 USHORT port_buff_size; // port buffer size
10431043 USHORT port_flags; // Misc flags
1044+ std::atomic<bool >
1045+ port_partial_data, // Physical packet doesn't contain all API packet
1046+ port_z_data; // Zlib incoming buffer has data left after decompression
10441047 SLONG port_connect_timeout; // Connection timeout value
10451048 SLONG port_dummy_packet_interval; // keep alive dummy packet interval
10461049 SLONG port_dummy_timeout; // time remaining until keepalive packet
@@ -1120,7 +1123,8 @@ struct rem_port : public Firebird::GlobalStorage, public Firebird::RefCounted
11201123 port_type(t), port_state(PENDING), port_clients(0 ), port_next(0 ),
11211124 port_parent(0 ), port_async(0 ), port_async_receive(0 ),
11221125 port_server(0 ), port_server_flags(0 ), port_protocol(0 ), port_buff_size(rpt / 2 ),
1123- port_flags(0 ), port_connect_timeout(0 ), port_dummy_packet_interval(0 ),
1126+ port_flags(0 ), port_partial_data(false ), port_z_data(false ),
1127+ port_connect_timeout(0 ), port_dummy_packet_interval(0 ),
11241128 port_dummy_timeout(0 ), port_handle(INVALID_SOCKET), port_channel(INVALID_SOCKET), port_context(0 ),
11251129 port_events_thread(0 ), port_thread_guard(0 ),
11261130#ifdef WIN_NT
0 commit comments