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

1259 Commits

Author SHA1 Message Date
dimitr
e7c9ebba12 Re-implemented the disabled code in the remote server. Cleaned up the legacy logic that doesn't look actual these days.
Some code refactoring.
2011-12-22 15:32:06 +00:00
asfernandes
906ea4729e Misc. 2011-10-27 01:04:14 +00:00
alexpeshkoff
3513087d98 Fixed services to make them work with trusted auth emulator and old client 2011-10-20 12:20:33 +00:00
asfernandes
5635607c9d Avoid exception in successfull attachments. 2011-10-12 23:17:45 +00:00
alexpeshkoff
343c7862bf Fixed CORE-3607: Solaris does not define the RLIMIT_NPROC limit 2011-10-11 11:59:47 +00:00
asfernandes
eb5689ef0e Misc. 2011-10-07 02:33:02 +00:00
alexpeshkoff
4b87ef2341 Front-ported fix for unregistered bug - check return value of poll() before using it's output structures 2011-10-04 13:43:38 +00:00
alexpeshkoff
70ddf7a875 Make services work correctly with multiple security databases 2011-10-04 12:51:57 +00:00
alexpeshkoff
c6b3a162b8 misc 2011-09-27 11:51:24 +00:00
dimitr
b528faa162 Corrections. 2011-09-22 15:14:36 +00:00
alexpeshkoff
b76a2d8c47 Getting ready for support of multiple security databases in services 2011-08-09 12:11:17 +00:00
alexpeshkoff
9123dcaf78 Fixed a hang in client when trying to attach to non-existent database with old-version firebird server running on same box 2011-07-27 09:06:41 +00:00
alexpeshkoff
7e22abb2b7 Simplified code - thanks to Claudio 2011-07-18 11:50:51 +00:00
dimitr
ac96c3ae97 Front ported CORE-3554: Server crashes during prepare or throws incorrect parsing error if the remotely passed SQL query is empty. 2011-07-15 09:05:36 +00:00
robocop
e3f52f2520 Misc. 2011-07-07 07:58:02 +00:00
asfernandes
577e9e4b7e Misc. 2011-07-02 22:10:07 +00:00
alexpeshkoff
13e0341fea Use interface-based API in remote server. Use stable "next" pointers in yvalve. 2011-06-29 09:41:47 +00:00
robocop
5ad96271e6 Misc. 2011-06-24 06:34:16 +00:00
alexpeshkoff
40348295e1 Used upgradeInterface() in a number of places.
Fixed memory leak when unloading module, related with upgraded interfaces.
Fixed timer on posix to be high resolution.
Better diagnostic in services.
2011-06-10 12:53:51 +00:00
asfernandes
add3d8ddef Misc. 2011-06-08 01:55:13 +00:00
hvlad
e6329b0663 Make TA work with 2.1 clients and not crash. Thanks to Alex. 2011-06-07 12:59:52 +00:00
hvlad
443f298067 Windows trusted auth didn't worked 2011-06-05 22:50:59 +00:00
asfernandes
5ffa6c77c8 Move v3 public include files to src/include/firebird. 2011-06-02 15:57:08 +00:00
alexpeshkoff
32ffebb3bf Fixed CORE-3250: Cannot start firebird server under any username other than "root", "firebird" , "interbas"or "interbase" 2011-06-01 10:52:28 +00:00
dimitr
070718bea2 Fixed CORE-3387: Client library could hang infinitely waiting for a reply packet on a forcibly disconnected server socket. 2011-05-30 09:59:11 +00:00
asfernandes
717ef9c486 Misc. 2011-05-21 19:11:03 +00:00
asfernandes
19cbed237b Misc. 2011-05-21 18:56:02 +00:00
alexpeshkoff
4641d2de68 Better interfaces hierarchy: all of them are derived from IVersioned 2011-05-19 16:24:46 +00:00
alexpeshkoff
85b3b5cf95 Interface for 2PC (distributed transactions coordinator) 2011-05-19 11:38:38 +00:00
hvlad
d0108e2918 Show long version string in "Firebird Server Properties" dialog properly 2011-05-11 09:56:53 +00:00
asfernandes
1c5770da81 Warning / error. 2011-05-11 02:43:39 +00:00
asfernandes
3ce54d2eda Misc. 2011-05-11 01:18:28 +00:00
hvlad
fef1f49c94 Shared page cache implementation 2011-05-09 10:15:19 +00:00
asfernandes
69dc52ba48 Integrate IAttachment and ITransaction in the external engines API. 2011-05-07 19:52:44 +00:00
alexpeshkoff
256cb1e853 1. Use reference counted stable in global pool objects instead PublicHandle's validation.
2. Avoid massive segfaults when closing heavily loaded server.                                                                                 
3. Restored logic in YValve required for correct shutdown.                                                                                    
4. Do not change externally visible request body when preparing it.
2011-04-25 17:47:56 +00:00
asfernandes
b781d62d4a Make the new BLOB API use void* buffers, so applications can read/write char* strings or any other type without casts. 2011-04-15 18:54:02 +00:00
asfernandes
c63493ffba Added metadata support to IStatement. 2011-04-14 01:03:43 +00:00
alexpeshkoff
437d841cfa Rolled back my commit using IBlrMessage interface. Replaced with single plain structure FbMessage. 2011-04-13 12:41:40 +00:00
asfernandes
04bb4ba305 Remove unused parameter and rename a constant. 2011-04-09 20:00:00 +00:00
alexpeshkoff
9a4689d3e9 Use interface IBlrMessage instead passing C++ class pointer to API interface's functions 2011-04-08 16:43:05 +00:00
alexpeshkoff
4c3f87d6bd Continued renaming interfaces. Added comments 2011-04-08 15:18:50 +00:00
alexpeshkoff
5c88e478f6 Use better names for a number of objects according to Vlad's suggestion 2011-04-07 17:16:00 +00:00
asfernandes
03ce334e2b Misc 2011-04-04 13:37:47 +00:00
asfernandes
20bfe736bb New YValve implementation. 2011-04-02 19:38:50 +00:00
robocop
b5ef5c4771 Misc, style, etc. 2011-04-02 04:53:35 +00:00
alexpeshkoff
9ef53b65e0 Remove reference counting where not appropriate 2011-03-31 13:44:22 +00:00
asfernandes
166c41c5b1 Move transactRequest, createBlob, openBlob, getSlice, putSlice and ddl from ITransaction to IAttachment.
It's better to have one standard than two, and "ddl" was broken from API POV.
So make the IAttachment always the caller, explicit or implicit (via IStatement or IRequest), and pass the ITransaction as parameter.
2011-03-21 21:56:47 +00:00
asfernandes
c863db6e6d Removed commented out Sqlda support and rename methods removing the word 'messsage'. 2011-03-20 19:15:55 +00:00
asfernandes
34fd6866bc Remove unused message types. 2011-03-20 19:15:13 +00:00
asfernandes
2ce201f4ae Use MessageBuffer in executeMessage and fetchMessage. 2011-03-20 19:14:03 +00:00
asfernandes
e4658d76c3 Misc 2011-03-20 16:24:46 +00:00
hvlad
fc11a24376 XNET was broken. Abnormal client disconnection was not released port and resources. Whole XPM map was corrupted and new connections was not possible.
Renamed back peer_shutdown -> server_shutdown, XPMF_PEER_SHUTDOWN -> XPMF_SERVER_SHUTDOWN and XCCF_PEER_SHUTDOWN -> XCCF_SERVER_SHUTDOWN because this is pure client things and should not be used by server side.
2011-03-19 11:39:03 +00:00
asfernandes
d67b091ee5 Misc 2011-03-11 00:58:55 +00:00
hvlad
d1f9eb91b5 Front ported fix for bug CORE-3328 : Client writes error messages into firebird.log when database is shutted down 2011-03-07 15:48:39 +00:00
hvlad
0bd7d05e71 Follow Alex changes 2011-03-02 23:42:58 +00:00
alexpeshkoff
0a7c3fc69d Fixed CORE-3369: first step to make it possible to specify non-default security database for specific database 2011-03-02 13:42:56 +00:00
asfernandes
260fdaa03f Misc 2011-02-26 16:02:37 +00:00
hvlad
d756a02f89 Fixed bug CORE-3351 : Windows client could put 10054 error messages into firebird.log at connection time 2011-02-15 10:10:57 +00:00
asfernandes
7800060e22 Misc 2011-02-04 23:58:10 +00:00
hvlad
1fc0b1874a Fixed bug CORE-3327 : Thread pool in network server could create more threads than necessary 2011-02-02 14:58:16 +00:00
asfernandes
ccaaca7c72 Misc 2011-01-29 17:24:29 +00:00
alexpeshkoff
20b15687c9 Frontported fix for CORE-3194: Number of connections to linux superclassic has limit equal 508 2011-01-28 17:56:50 +00:00
asfernandes
248ddfa04a Misc 2011-01-28 00:58:32 +00:00
dimitr
05047588c3 Fixed authentication in Windows builds. 2011-01-27 05:13:59 +00:00
alexpeshkoff
54fe27e4c3 Do not throw success status vector - if we got no user error, but bad op in packet, this is network error 2011-01-26 16:34:02 +00:00
alexpeshkoff
eb11598570 Implement Thread::kill for posex threads. Do not support separate Thread::closeHandle - move it inside kill and waitForCompletion 2011-01-24 16:36:29 +00:00
hvlad
1e6135ec40 Fixed main reason of AV at engine DLL unload time. More fixes will follow soon. 2011-01-24 13:20:25 +00:00
hvlad
dca44e309d Make it compiles on Windows after Alex's changes. MSVC10 build will follow later. 2011-01-24 12:51:32 +00:00
alexpeshkoff
2cf062e317 Front-ported fix for CORE-3297: nbackup exits without info when firebird.conf is missing. Make all utilities run without firebird.conf - only server requires it's presence. 2011-01-19 17:24:49 +00:00
alexpeshkoff
ddaddccb97 Fixed bug, found by Adriano - destructor of statically allocated factory should better never be called 2011-01-17 12:17:24 +00:00
asfernandes
233093cee4 Misc 2011-01-16 02:16:15 +00:00
robocop
24b28d8831 Misc. 2011-01-15 09:30:24 +00:00
robocop
60edaaa8b3 Misc. 2011-01-15 09:29:04 +00:00
robocop
b4a546d77f Misc and small fix. 2011-01-15 09:27:15 +00:00
alexpeshkoff
d6fcde387b New plugin manager. Use it for all types of plugins. 2011-01-14 17:31:40 +00:00
asfernandes
095c9b80d7 Misc 2010-12-29 00:49:21 +00:00
asfernandes
c9ec26c0c3 Feature CORE-726 - Boolean data type 2010-12-18 02:17:06 +00:00
hvlad
1e35bc97c8 Port forward fix for bug CORE-3119 : 100% CPU USAGE with Unilimited Loop & Index corrupted 2010-12-12 20:19:47 +00:00
asfernandes
eb257542c1 Misc 2010-12-04 17:19:48 +00:00
hvlad
40c7edec78 Fixed bug CORE-3266 : Race condition between async service detach request and running user trace service 2010-11-29 15:06:42 +00:00
alexpeshkoff
9d8720a198 Remove restriction on username, as it was discussed in devel 2010-11-23 12:56:25 +00:00
alexpeshkoff
01ad4134c7 Improvement CORE-3248: Set unused bytes of varchar values in message buffer to 0 2010-11-19 15:11:09 +00:00
dimitr
818663e826 Basic network support for the fb_ping() API call. Untested yet. 2010-10-31 13:46:54 +00:00
dimitr
c80ac097f3 Fixed CORE-3202: execute_immediate API call family may crash the remote server. 2010-10-28 18:16:21 +00:00
alexpeshkoff
0ab6c4abf7 Avoid throwing C++ exceptions from authentication plugins 2010-10-28 08:02:42 +00:00
asfernandes
5c7e5ce634 Misc 2010-10-22 01:24:31 +00:00
hvlad
f2f89355bd Don't use obsolete gds cleanup in XNET. It also avoids AV in server at shutdown 2010-10-21 14:25:26 +00:00
hvlad
d5833b72f0 Windows-specific hack to register security plugins seems obsolete with new build 2010-10-21 11:45:37 +00:00
hvlad
df8a6a2ff7 Corrections for new build system. Work in progress... 2010-10-20 22:00:34 +00:00
hvlad
648a609775 Follow Alex changes and remove ISC_STATUS* from various functions 2010-10-18 17:25:33 +00:00
hvlad
f223086fdd Corrections for new build system. Work in progress... 2010-10-18 17:23:36 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
asfernandes
91384eb587 Misc 2010-10-12 17:40:27 +00:00
alexpeshkoff
55d5bdf465 Missed in previous commit files 2010-10-12 08:15:48 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
asfernandes
2cbc4e3675 Misc 2010-07-24 02:43:28 +00:00
hvlad
2de56fdeef Forgotten changes 2010-07-23 14:39:21 +00:00
hvlad
ae01bde43d Make trusted auth works 2010-07-23 14:31:04 +00:00
hvlad
6e2db049ea Make Windows build work (MSVC8 only) after Alex changes.
Some corrections is still required.
2010-07-23 14:06:29 +00:00
alexpeshkoff
d24cd9cbd7 Implemented self-registering plugins format (same plugin can be easily linked statically
or as dynamic library, depending upon platform requirements). Self-registering plugins
need not export any functions, instead they call fb_register_plugin() on startup.

Reworked all user management to use self-registering plugins.

Removed system table RDB$USERS. PLG$USERS is not created automatically by plugin, but
will be later (work in progress).
2010-07-23 12:04:18 +00:00
alexpeshkoff
6cbefa1f46 Introduced class SharedMemory - base class for everything, using IPC. Related to CORE-3035. 2010-06-25 11:55:11 +00:00
hvlad
3271bbae3a Disable hard limit on number of worker threads. Something more smart should be implemented instead. 2010-06-23 13:36:52 +00:00
dimitr
01c57892e8 Fixed a lock-up when connecting locally to the missing database file. The issue is old, but it could never fire prior to v3.0. 2010-06-17 14:27:01 +00:00
asfernandes
e37d097240 Misc 2010-05-22 02:00:45 +00:00
alexpeshkoff
74a4aaacb6 Moved not auth-specific part of interface declaration to separate file 2010-05-20 15:02:31 +00:00
alexpeshkoff
ea28dc5773 Frontported - raise NPROC limit on unix to avoid errors when starting many threads 2010-05-20 12:03:30 +00:00
hvlad
cd5fcdd279 Fixed bug CORE-2995 : Same error in status vector reported twice 2010-05-07 13:02:21 +00:00
alexpeshkoff
8b4d53703d Cleaned isc_dpb_sys_user_name and related things 2010-04-21 12:55:43 +00:00
alexpeshkoff
4ce63669c1 finished fb_inet_server cleanup 2010-04-16 13:33:22 +00:00
asfernandes
b36b9764ce Misc 2010-04-16 02:31:36 +00:00
dimitr
a24996acf8 Adjusted the Alex changes for Windows. 2010-04-15 15:45:14 +00:00
alexpeshkoff
88b8a40a04 1. Cleaned up most of SUPERSERVER usage.
SUPERSERVER has 4 different meanings in our code:
- this is milticlient server (replaced with Config::getMultiClientServer())
- use shared data cache (replaced with Config::getSharedCache())
- use shared metadata cache (replaced with macro SHARED_METADATA_CACHE)
- database are NOT shared between processes (replaced with getSharedDatabase())

2. Use fb_smp_server as both superclassic and classic binary on posix
(xinetd autodecection is done).

3. Small posix build cleanup.
2010-04-15 14:40:27 +00:00
dimitr
998e0b9523 Cleanup SUPERCLIENT. 2010-04-01 04:45:05 +00:00
asfernandes
68e67d1453 Misc 2010-03-30 00:25:52 +00:00
alexpeshkoff
deb5c2317b Fixed CORE-2948: Segfault when server is exiting 2010-03-29 15:24:03 +00:00
asfernandes
11a3746970 Misc 2010-03-25 02:10:57 +00:00
alexpeshkoff
1a75dcc12c Cleanup SUPERCLIENT - and also more generic control for overwritten const cstring 2010-03-24 12:13:07 +00:00
alexpeshkoff
e81e0db47b Cleanup SUPERCLIENT/EMBEDDED - avoid different remote builds 2010-03-24 07:50:10 +00:00
dimitr
9aa33a6b9e Misc. 2010-03-22 13:29:41 +00:00
asfernandes
2ed85aef29 Misc 2010-03-21 23:01:30 +00:00
dimitr
ee01b7499b Fixed the client side crash when error is returned from the server during attaching. 2010-03-21 13:15:16 +00:00
dimitr
1b732a3579 Reworked the remote protocol analyzing logic.
In particular, it resolves the possible problems with the local access to databases on network shares.
Also, it removes any dependencies from EMBEDDED to simplify Alex's cleanup.
Finally, it adds the initial implementation of the Vlad's suggestion (for testing purposes).
2010-03-21 13:13:55 +00:00
dimitr
eb97ea665c Cleanup. 2010-03-21 13:01:34 +00:00
dimitr
63bedffa71 Refactored the sorter into a proper class.
Removed some dead code and unused files.
2010-03-16 11:19:29 +00:00
asfernandes
d3ad05b7eb Misc 2010-03-14 15:33:06 +00:00
alexpeshkoff
b0a411f8bf Frontported fix for CORE-2725: Server crashes when sending wrong BLR for parameters in op_execute 2010-03-14 13:58:11 +00:00
asfernandes
01f6e290fd Misc 2010-02-15 00:43:04 +00:00
hvlad
d19395459f Fixed bug CORE-2864 : Listener process of Classic Server leak handles. 2010-02-14 12:18:07 +00:00
hvlad
317e2b5105 Fixed bug CORE-2851 : problem with fb_cancel_operation 2010-02-08 13:36:56 +00:00
robocop
7ffc4d001f Misc. 2010-02-08 07:57:33 +00:00
alexpeshkoff
08a8ee9f42 Make InitInstance release objects, created by it 2010-02-07 15:13:28 +00:00
robocop
280cbb3ab2 Totally misc. 2010-02-06 04:26:14 +00:00
asfernandes
281d382185 Misc 2010-02-06 01:32:53 +00:00
alexpeshkoff
513734bb8c Frontported fix for CORE-2836: fb_cancel_operation() incorrectly modifies rdb_status_vector 2010-02-04 15:36:03 +00:00
dimitr
73ec84cace Restored the legacy explicit checks for NULL objects instead of hiding that check inside checkHandle() and isHandleKnown().
This improves the readability and also fixes the [possible in the future] issues with multiple inheritence.
2010-02-02 14:22:46 +00:00
dimitr
fbbc7a2432 Restored the legacy explicit checks for NULL objects instead of hiding that check inside checkHandle() and isHandleKnown().
This improves the readability and also fixes the [possible in the future] issues with multiple inheritence.
2010-02-02 14:14:00 +00:00
alexpeshkoff
fb1a042859 Better fix for trusted authentication problem 2010-01-29 17:53:07 +00:00
hvlad
3c20fd3e07 Make trusted auth works again.
To be reviewed by Alex.
2010-01-29 13:08:53 +00:00
asfernandes
a454b705d0 Misc 2010-01-28 15:01:57 +00:00
alexpeshkoff
b0321f78ff Better approach to const correctnes of auth interfaces - thanks to Claudio 2010-01-27 16:51:26 +00:00
asfernandes
5fb0432672 Misc 2010-01-24 16:52:24 +00:00
asfernandes
eb9eef9d77 Misc 2010-01-24 15:18:43 +00:00
dimitr
7f0b8af499 Fixed the compilation. 2010-01-23 10:18:55 +00:00
alexpeshkoff
55e717f810 Moved authentication code from engine to remote listener.
Get ready for authentication plugins.
2010-01-22 14:55:11 +00:00
robocop
dc978c61e9 Style. 2010-01-02 02:02:17 +00:00
alexpeshkoff
443f261abf Introduce isc_dpb_version2 - format is WideTagged. 2009-12-30 15:24:16 +00:00
alexpeshkoff
e338fb79d1 frontported change from 2.5 - issue with too many records in log file 2009-12-04 16:00:12 +00:00
hvlad
140604e4d6 Fixed bug CORE-2670 : FB 2.5 freezes during data pump operations 2009-12-04 11:46:43 +00:00
dimitr
8914324bf1 Fixed CORE-2769: Make XNET_CONNECT_TIMEOUT in xnet.h user configurable. 2009-11-28 12:42:31 +00:00
robocop
1386adcf90 Style. 2009-11-16 08:06:31 +00:00