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

163 Commits

Author SHA1 Message Date
dimitr
7832014210 Forward port the installer fix. 2008-06-13 14:01:45 +00:00
alexpeshkoff
ff7cfc717e Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter 2008-05-22 08:59:45 +00:00
asfernandes
c9202a3767 Misc 2008-05-18 02:02:50 +00:00
alexpeshkoff
86cd8cb6b3 1. Added parameter 'shutdown reason' to fb_shutdown() API call. It's passed to shutdown
callback function, and helps to take correct action in it. This fixes CORE-1827: Win32
Embedded Server should pass control to application before calling exit(3).
2. Removed unneeded any more flag in isql and qli, used earlier to distinguish between
kinds of shutdown.
2008-05-16 11:31:57 +00:00
hvlad
9280a572a0 Avoid long blocking of att_mutex and make sure it is always released when attachment deleted.
Move active requests cancellation at engine shutdown from Y-valve into engine and let them stop execution before deletion of attachments.
Make sweep run in separate thread despite of engine architecture.
2008-05-04 12:49:29 +00:00
robocop
649c1733e9 Misc. 2008-04-26 14:50:27 +00:00
hvlad
3c353209d2 Implement CORE-818 : Server needs to detect disconnects.
For INET only.
2008-04-23 09:38:15 +00:00
robocop
c23e66cc10 Paranoid check. 2008-04-22 11:34:24 +00:00
dimitr
4a40b788da Correction. 2008-04-17 07:30:10 +00:00
robocop
5294fda616 Misc. 2008-04-15 09:31:35 +00:00
dimitr
93ff333155 Restored the prior behavior of the -d switch: thread per port. This makes the debugging easier.
Introduced the new -m switch for the "public" super-classic mode with the thread pooling.
2008-04-10 10:47:11 +00:00
dimitr
1c343cbadc Server-side fix for CORE-1820. 2008-04-04 09:17:17 +00:00
robocop
b2e8da134f Trying to fix the interface again.
Sorry for going back and forth with constness, but in some cases it was impossible to ensure that input params aren't overwritten, thus I took const away to avoid making promises that can't be met (see the case of fetch that uses a supposedly input-only param to return data). Overwriting memory that was declared const initially is a serious error in C++ with undefined outcome so we better do not lie.
2008-04-03 10:17:24 +00:00
hvlad
085ba41525 Replace "delete port" by "port->release()" as remote port is RefCounted object now 2008-03-27 11:15:56 +00:00
hvlad
9318660f3a Finish cleanup in remote started by Alex (remove ALLR etc) 2008-03-25 18:58:31 +00:00
hvlad
d90529cd7d Link port into parent's list only after it full creation.
Not used currently in XNET\WNET but looks better ;)
2008-03-21 14:52:10 +00:00
alexpeshkoff
ed25245303 Applied shutdown changes, discussed in fb-devel a week ago. 2008-03-17 16:49:47 +00:00
skidder
6ef7cd1e30 Allow running engine in superclassic mode on Windows as the service.
This also changes the behavior of -d switch. To run superclassic
engine as application please now invoke fb_inet_server with both -d and -a switches.
2008-03-15 19:12:20 +00:00
hvlad
2423a4bc3e Use EnsureUnlock where appropriate. Remove not used thread accounting in CNTL. Fix few mistakes\typos in my previous commit. 2008-03-13 13:48:05 +00:00
dimitr
8f0dde23d3 Cleanup. 2008-03-12 16:34:18 +00:00
dimitr
ca82e85d7b Cleanup. 2008-03-12 16:27:36 +00:00
hvlad
98b3b880b5 Empty SPB not allowed anymore 2008-03-12 09:20:10 +00:00
hvlad
4115317607 Make remote module thread-safe, remove THREAD_EXIT\THREAD_ENTER from it, refactor server code and some cleanup. To be continued. Please check posix builds. 2008-03-11 14:11:32 +00:00
robocop
2912e6a5be Cleanup and misc. 2008-03-10 08:44:07 +00:00
robocop
c6d8b0f46f Style. 2008-03-05 08:39:26 +00:00
dimitr
d597154a4b 1) Added timeout value to the shutdown API call.
2) Fixed the slow fbembed detach noticed by Claudio and Vlad.
3) Cleanup.
2008-03-04 13:27:02 +00:00
alexpeshkoff
7dacbbbd74 Make fb_disconnect_transaction, fb_shutdown and fb_shutdown_callback public API calls.
Related cleanup.
2008-03-03 17:47:09 +00:00
dimitr
5ca270c096 1) Cleanup SERVER_SHUTDOWN.
2) Make the engine shutdown asynchronous.
2008-02-29 12:47:20 +00:00
dimitr
cbda8ca729 Misc and cleanup. 2008-02-29 08:47:31 +00:00
dimitr
b51b0a0d5c Misc and cleanup. 2008-02-29 08:46:38 +00:00
dimitr
3724604ec8 Misc and cleanup. 2008-02-29 08:45:59 +00:00
dimitr
3cba78804c Fixed the Windows build. 2008-02-29 07:19:39 +00:00
alexpeshkoff
00c63c1f8d 1. Make signals handling in yValve MT safe.
2. Introduce new private API calls, fb__shutdown() and fb__shutdown_callback().
3. Introduce fb_smp_server - binary to run superclassic on posix.
4. Various cleanups.
2008-02-28 18:42:30 +00:00
dimitr
2e4d036eed Get rid of the Win9x/ME specifics. We don't support them anymore. 2008-02-26 11:03:09 +00:00
robocop
95e59f72b5 Undo the check for 255 bytes in JRD_num_attachments (let the callers handle long paths).
Fix some memory leaks (at least one of them signaled by myself years ago) when calling JRD_num_attachments.
Introduce an enumeration for the "flag" parameter in the same function.
2008-02-21 04:24:42 +00:00
dimitr
aabe5ecd02 Let's shutdown the JRD subsystem properly when Windows is being shutdown itself. 2008-02-20 16:28:59 +00:00
dimitr
a8154839d4 Fixed the Windows build. 2008-02-02 20:21:08 +00:00
alexpeshkoff
8901a0e003 Services cleanup - make class Service traditional C++ class 2008-02-02 18:33:37 +00:00
dimitr
6bb281b030 1) Call SRVR_shutdown() when shutting down the server process.
2) Get rid of the unnecessary sync calls.
2008-02-02 14:42:16 +00:00
dimitr
04e90d8033 Misc. 2008-02-02 14:40:50 +00:00
dimitr
214cb37f1b Fixed the win32 build. 2008-01-23 19:03:20 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
dimitr
f25819fb19 The merge continued. 2008-01-16 07:55:28 +00:00
robocop
e134683564 I decided to close some exotic (and probably irrelevant) buffer overruns. 2007-12-04 09:59:54 +00:00
asfernandes
ad13b126d1 Misc 2007-11-30 00:35:44 +00:00
dimitr
f3e3ba6cf6 Fixed (hopefully) CORE-1565. 2007-11-29 09:24:42 +00:00
asfernandes
4e426d0739 Commit forgotten change 2007-11-26 09:57:19 +00:00
alexpeshkoff
3e0d8ebc5b Fixed CORE-1603: Possible buffer overflow with long user name 2007-11-19 16:18:59 +00:00
robocop
89f8a85398 Since we avoid the practice of naming a variable and a struct the same, I changed that (and did little cleanup). 2007-11-19 07:24:06 +00:00
hvlad
542890b41f Rename thread to cntl_thread in cntl.cpp to avoid multiply "struct thread" definitions and make debugger happier 2007-11-18 19:25:56 +00:00