8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:03:03 +01:00
Commit Graph

1725 Commits

Author SHA1 Message Date
Dmitry Yemanov
a8c5b9fa96 Make automatic online re-initialization reliable (#8324) 2024-12-10 09:59:08 +03:00
Vlad Khorsun
6551af1fcb Fixed bug #8331 : Crash of fbclient.dll on Windows 2024-11-27 22:41:59 +02:00
Vlad Khorsun
df885d5935 Collect network statistics and make it available for the user applications. (#8310)
* Make Remote provider collect wire statistics.
New info items to query wire stats counters.

* New ISQL commands to show wire statistics.

* Remove requirement to not mix local and remote handled items in the same info request.

* Follow @asfernandes suggestion about class members initialization.

* Make ctor explicit, as @sim1984 suggested

* Put isc_info_end into response buffer despite of its presence in info items.
2024-11-12 13:24:54 +02:00
Vlad Khorsun
a645790176 Put isc_info_end into response buffer despite of its presence in info items. 2024-11-08 11:48:06 +02:00
Vlad Khorsun
216fb3e164 Simplify 'Firebird' namespace usage in remote. 2024-11-07 14:28:41 +02:00
Vlad Khorsun
e78b721256 Wire protocol improvement: prefetch blob info and some data when open blob (#8307)
* Group op_open_blob2, op_info_blob and op_get_segment into single physical packet.
It allows to prefetch and cache blob info and some blob data in single network roundtrip.
Return cached blob info, if present, without remote access.

* No need to reserve space for segment length.
Fixed typo.
Thanks to @dyemanov for comments.

* Add 'const' for parameter declaration, as @AlexPeshkoff suggested

* Use 'if constexpr' as @TreeHunter9 suggested.
Also, avoid hardcoded constants when possible.
2024-11-07 14:21:15 +02:00
Vlad Khorsun
c78b5e6947 Post fix for #8256.
port should be NULLified after forced disconnect.
2024-10-17 11:27:27 +03:00
Vlad Khorsun
2db2b7b496 Warnings 2024-10-05 23:41:35 +03:00
Vlad Khorsun
37079f1615 Additional fix for #8256 : the case when server doesn't return error immediately after connect. 2024-10-04 14:19:48 +03:00
Vlad Khorsun
3092eee7e3 Fixed non-Windows builds 2024-09-30 00:27:05 +03:00
Vlad Khorsun
29197adf31 If client fails to connect using Win_SSPI plugin with Negotiate security package, try again using NTLM security package.
This allows new client connect to the old server that uses legacy NTLM security package.
2024-09-30 00:17:44 +03:00
Vlad Khorsun
cc512a34e0 Merge pull request #8262 from FirebirdSQL/work/gh-8256
Make server to correctly handle case when accept() returns both success and data for client.
2024-09-24 10:45:13 +03:00
Adriano dos Santos Fernandes
6ea72c7a6b Fix warning. 2024-09-10 22:45:57 -03:00
Alexander Zhdanov
446b436a62 Fix a bug where the shutdown handler could be called again 2024-09-05 15:23:44 +03:00
Ilya Eremin
258584ff6d Fix a case of deleted memory modification
cnctAuth and port->port_srv_auth point to the same object so useResponse must not be assigned if the object is deleted.
2024-08-21 13:37:19 +03:00
Dmitry Yemanov
a7f4f03d64
Ensure the CS listener uses the SO_REUSEADDR socket option (#8181) 2024-07-13 14:32:28 +03:00
Alexander
6e7596f78e
Added shutdown handler for server (#8165)
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
2024-07-08 10:42:56 +03:00
AlexPeshkoff
134af2b82f Fixed #8027: Broken gbak statistics; also small cleanup in svcstart(). 2024-02-29 18:19:47 +03:00
Dmitry Yemanov
e9edafa617
Encapsulate GUID operations (#7990)
* Encaspulate GUID operationse

* Separate core and optional usage of the Guid class, as suggested by Adriano

* Wrap dbb_guid with std::optional, make Guid::fromString() static

* Disallow construction of invalid (uninitialized) guids
2024-02-11 10:24:23 +03:00
AlexPeshkoff
6d947803e2 Postfix for #7951: Make it possible to handle attach errors in key holder plugin; more error handling issues 2024-01-25 11:40:49 +03:00
AlexPeshkoff
1b431bc8db Postfix for #7951: Make it possible to handle attach errors in key holder plugin, fixed lost warnings 2024-01-24 13:12:34 +03:00
AlexPeshkoff
c2238907a7 Implemented #7951: Make it possible to handle attach errors in key holder plugin. 2024-01-11 13:45:04 +03:00
Vlad Khorsun
0a5a4f30b4 Fixed bug #7896 : replication.log remains empty (and without any error in firebird.log) 2023-12-11 14:25:53 +02:00
Adriano dos Santos Fernandes
f5e81c6854 Postfix for #7810 - thanks to Vlad. 2023-11-25 15:17:12 -03:00
Adriano dos Santos Fernandes
f3205ff81d
Feature SET AUTOTERM in ISQL. (#7868) 2023-11-23 08:48:39 -03:00
AlexPeshkoff
e7e4a776ed Minor security measure - avoid sending of authentication block over the wire (from ExtDS) 2023-10-05 15:59:54 +03:00
Adriano dos Santos Fernandes
5d47a0ba7c Replace throw() by noexcept. 2023-09-18 20:27:13 -03:00
Dmitry Yemanov
90ef56ae16 Postfix for replication server in Linux CS 2023-09-05 18:07:46 +03:00
AlexPeshkoff
f049b6fb7e Fixed #7723: Wrong error message on login if the user doesn't exist and WireCrypt is disabled 2023-08-28 17:11:01 +03:00
Dmitry Yemanov
ae7bee2664 Use fixed format for timing. Make the verbose logging a bit less verbose. 2023-07-21 20:17:53 +03:00
Dmitry Yemanov
3bba515b60 Fixed the build
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-13 11:07:10 +03:00
Dmitry Yemanov
9aaeab2d4b Frontported fix for #7673: Make async replication reliable on Linux CS (replica side)
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-13 10:02:04 +03:00
AlexPeshkoff
857f09ece9 Cleanup - thanks to Mark
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-04 19:06:33 +03:00
AlexPeshkoff
45a1856254 Avoid abort in detach() due to exception in dtor - noticed once when running tests, could not reproduce it myself
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-29 14:40:33 +03:00
Vlad Khorsun
01c227855a @aafemt suggestion : removed obsolete code, more clear error handling.
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-18 15:12:02 +03:00
Vlad Khorsun
c1c13cdb37 Improvement #7637 : Run as application not specifying switch -a
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-17 16:59:08 +03:00
Vlad Khorsun
d41cc85523 Improvement #7634 : Include Performance Cores only in default affinity mask 2023-06-16 13:24:00 +03:00
Alexander Peshkov
d868e7ea78
Fixed #7579: Cannot nbackup a firebird 3.0 database in firebird 4.0 service with engine12 setup in Providers
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-13 18:16:37 +03:00
AlexPeshkoff
bcd99808b7 Debugging enhancement - always copy shared file images to core dump
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-28 18:20:41 +03:00
Vlad Khorsun
82087d7670 Fixed wrong usage of deferred packets when current protocol doesn't supports its (XNET, for example).
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-28 01:08:04 +03:00
AlexPeshkoff
c3e16d6867 Fixed #7504: Segfault when closing SQL statement in remote provider during shutdown 2023-03-27 16:48:10 +03:00
Dmitry Yemanov
d7fedd3ea2 Better shutdown approach for the replication server
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-03-11 09:37:28 +03:00
AlexPeshkoff
e1801225db Fixed #7473: Client application crash when processing callback requests from server during attachDatabase 2023-02-13 17:57:27 +03:00
AlexPeshkoff
3792ba4a7b Fixed #7402: Server crashes on startup error 2022-11-30 20:21:20 +03:00
AlexPeshkoff
6cc18820b5 Debugging feature - put shared memory image into core dump 2022-11-23 20:31:57 +03:00
Vlad Khorsun
57218a90a7
Merge pull request #7339 from hvlad/PageCache/HashTable_PR
Hash table based on lock-free list for page cache.
2022-11-22 00:00:21 +02:00
AlexPeshkoff
07bb38977e Fixed #7365: Client side aliases do not work in databases.conf 2022-10-27 20:15:45 +03:00
Vlad Khorsun
72292c4aa3 Remove unnecessary dependency on jrd.h in fbserver project 2022-10-08 20:57:40 +03:00
Dmitry Starodubov
d13d181ac0 Fixed possible crash when server-side authentication creates an empty plugin list 2022-10-07 16:57:38 +03:00
AlexPeshkoff
217ca7582a Fixed #7262: Repeated op_batch_create leaks the batch 2022-09-30 20:00:33 +03:00