8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 06:43:02 +01:00
Commit Graph

1641 Commits

Author SHA1 Message Date
asfernandes
26c1892310 Misc 2009-06-20 18:46:59 +00:00
robocop
6bfacad413 CORE-2509. Took the opportunity to fix several data types. 2009-06-18 12:07:07 +00:00
robocop
b578ec50dc Put bad_port_context() in alphabetical order and created a little helper, send_error(). 2009-06-09 12:52:19 +00:00
alexpeshkoff
4a0ab87d6b Use PORT_FILE for port file lock - thanks to Claudio 2009-06-09 11:06:57 +00:00
alexpeshkoff
f21a2bf4be Make initialization distributed - each subsystem does what it needs when needs, removed gds.cpp:init() 2009-06-09 10:08:12 +00:00
alexpeshkoff
40fa68971c Make it compile on posix 2009-06-09 08:39:29 +00:00
robocop
01cfec77b1 Paranoid checks. 2009-06-09 08:20:51 +00:00
robocop
044276cdc0 Style. 2009-06-09 05:55:17 +00:00
dimitr
6bbff07368 Slightly improve the retry loops in inet.cpp. Let's give up as soon as the call fails with any unexpected error. 2009-06-08 12:34:47 +00:00
dimitr
ae1de3f245 CORE-2263: RemoteAuxPort for SuperClassic and regular Classic.
This change also fixes the possible races in SuperServer (possible after getting rid of the global mutex in the remote subsystem).
2009-06-08 12:21:31 +00:00
robocop
2e3ce0d23d Misc. 2009-06-07 09:49:58 +00:00
asfernandes
f8eb935eb7 Misc 2009-06-06 18:13:57 +00:00
dimitr
a964f5762b Misc. 2009-06-04 12:23:20 +00:00
dimitr
5abc5a373d Added timeouts to the network event listener code.
Fixed wrong usage of SO_REUSEADDR on Windows.
2009-06-04 10:53:00 +00:00
robocop
68f44cb6a6 Misc. 2009-06-02 09:18:59 +00:00
robocop
81868b2783 Misc. 2009-06-02 06:37:01 +00:00
robocop
b29af64d5b This is already a Windows file, no need to check for the WIN_NT macro. 2009-06-02 06:34:59 +00:00
robocop
51d3c9b756 Let's use more typical #ifdef to test macros instead o #if. 2009-05-29 11:27:41 +00:00
alexpeshkoff
46527f2084 MT safe floating point exceptions control. Raise error in case of FP overflow according to SQL standard requirements. 2009-05-27 07:57:06 +00:00
robocop
4bae43779f Some #if should be #ifdef instead. 2009-05-17 11:25:50 +00:00
asfernandes
158a05c78d Misc 2009-05-10 15:23:31 +00:00
robocop
0e7dc28051 Style. 2009-05-09 13:46:06 +00:00
dimitr
d3dad89130 Correction. 2009-05-08 15:31:03 +00:00
dimitr
0f776b2517 Finalized the remote cleanup by Dmitry Kovalenko. 2009-05-08 09:23:34 +00:00
alexpeshkoff
a37d818726 AIX port - native compiler support 2009-05-07 14:49:40 +00:00
hvlad
a6578b4bba Fixed bug CORE-2453 : AV at engine when client used events disconnects 2009-05-07 11:11:43 +00:00
alexpeshkoff
c93c65df4c Use macro __sun instead of sun for this platform 2009-05-07 07:11:06 +00:00
robocop
d02c711694 Style and misc. 2009-05-05 11:45:58 +00:00
robocop
8edd8a7cd9 Style and misc. 2009-05-03 14:19:35 +00:00
robocop
e5b226f7a7 More unused params; style. 2009-05-02 13:00:09 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
asfernandes
1c20adb8fc Misc 2009-04-29 01:52:49 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00
alexpeshkoff
9b0950da7a Fixed CORE-2306: fbserver terminated abnormally when thread start failed 2009-04-24 15:51:40 +00:00
asfernandes
c986de33a2 Misc 2009-04-22 01:58:40 +00:00
alexpeshkoff
354aae3bc1 misc 2009-04-20 13:19:45 +00:00
robocop
754b185c10 Comments. 2009-04-18 09:58:31 +00:00
alexpeshkoff
cd54e5533e Fixed CORE-2437: Buffer overflow on client when delivering events. 2009-04-17 13:36:34 +00:00
alexpeshkoff
4ee99ff984 Make port wait for event thread shutdown on disconnect 2009-04-17 11:22:31 +00:00
robocop
4a6dddd02e Comments. 2009-04-16 06:52:08 +00:00
asfernandes
e707efaa1d Misc 2009-04-16 01:09:12 +00:00
robocop
ee08d55b01 Comments. 2009-04-15 14:18:20 +00:00
robocop
42e26b034f Comments. 2009-04-15 13:47:54 +00:00
robocop
09a087e458 Comments. 2009-04-15 13:41:22 +00:00
alexpeshkoff
78ef36a730 cleanup 2009-04-15 09:58:18 +00:00
robocop
1452ca21c1 Misc. 2009-04-15 06:40:17 +00:00
robocop
dea57e9099 Get rid of SCO. 2009-04-15 06:29:00 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
asfernandes
9e0c4f06f2 Misc 2009-04-04 16:28:33 +00:00
alexpeshkoff
77498cac9b Fixed some warnings 2009-04-03 10:49:07 +00:00
hvlad
d443178d0f More complete fix for bug CORE-2368 : AV after isc_cancel_events if event was not found 2009-03-23 17:20:51 +00:00
alexpeshkoff
ac92e643e6 Cleanup - events delivery using unix signals is not used any more 2009-03-16 16:31:51 +00:00
hvlad
428204cdf8 Fixed bug CORE-2368 : AV after isc_cancel_events if event was not found 2009-03-12 08:06:26 +00:00
asfernandes
2c92602c66 Close handle refering to parent process 2009-03-09 01:42:29 +00:00
robocop
cb6849f8a4 Misc. 2009-03-08 12:17:42 +00:00
hvlad
c574a32c39 Fixed bug CORE-2356 : On Windows listener process of Classic Server can't create necessary resources after restart if any worker process was present 2009-03-07 22:25:57 +00:00
hvlad
d4e7e15b85 Correction for my patch re. errors at graceful socket shutdown 2009-03-07 20:21:10 +00:00
asfernandes
9d086d289c Misc 2009-03-05 00:52:25 +00:00
robocop
4dc1d3d144 Misc. 2009-03-04 12:13:32 +00:00
dimitr
39b6dac932 Fixed the wrong assertion. 2009-03-03 15:25:34 +00:00
hvlad
fd2099aa96 Fixed bug CORE-2349 : False "Invalid SQLDA" error 2009-03-03 12:00:29 +00:00
dimitr
9dca0fa2b7 Correction related to my last commit. 2009-03-02 09:34:37 +00:00
asfernandes
283509ad8d Misc 2009-03-01 15:42:23 +00:00
alexpeshkoff
4fc28a7195 AIX port - cleanup 2009-03-01 13:23:58 +00:00
hvlad
de11e4037a Don't report wrong error at graceful socket shutdown.
Misc.
2009-03-01 10:35:43 +00:00
dimitr
fdeb9d6e53 Fixed the "bad handle" error reporting in the remote server. 2009-02-28 13:12:37 +00:00
robocop
fab6a3a6cf Get rid of superflous parentheses. 2009-02-28 11:57:40 +00:00
robocop
f309e01a7e Apply patch from Kovalenko Dmitry (Lipetsk). 2009-02-25 08:08:34 +00:00
robocop
41efd08618 Comment flag that I marked as unused years ago. 2009-02-25 05:38:27 +00:00
asfernandes
b204a1e54f Misc 2009-02-21 17:43:07 +00:00
alexpeshkoff
c69863bdd5 Clean up - code was not needed since security fix, avoiding use of UID, transfered by client 2009-02-20 16:13:32 +00:00
aafemt
c3cf2052ef Fix some mistypes that GCC doesn't tolerate 2009-02-17 17:00:22 +00:00
paulbeach
13274ac5a9 Frontport and solve symbol issue for MacOSX 2009-01-21 13:04:36 +00:00
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
robocop
3a03e0515c Style: aligning the opening and ending braces in switch() statements and in large blocks of code. 2009-01-18 11:36:08 +00:00
asfernandes
cd010ff939 Misc 2009-01-17 19:07:07 +00:00
robocop
5cdbf4cf00 Style. 2009-01-17 10:11:29 +00:00
hvlad
a789c93954 Avoid races - twice close handle of listener port during server shutdown. It was not dangerous but not comfortable for developers as under debugger CloseHandle() throw exception at second close attempt. 2009-01-16 23:58:10 +00:00
dimitr
4e54096846 Misc. 2009-01-16 20:25:31 +00:00
robocop
546290b68b Style. 2009-01-16 09:55:38 +00:00
alexpeshkoff
832394fd5a cleanup suggested by Claudio 2009-01-15 10:22:03 +00:00
robocop
f1fab1b53c Style. 2009-01-14 12:37:23 +00:00
robocop
b627ad2a39 Style. 2009-01-07 09:30:57 +00:00
robocop
fda9c3bc75 Style. 2009-01-05 08:22:58 +00:00
asfernandes
79e89d573d Misc 2009-01-03 19:02:04 +00:00
robocop
21bb7f3d20 Style. 2009-01-03 09:14:29 +00:00
robocop
6406e45337 Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.) 2009-01-02 06:36:12 +00:00
asfernandes
a177d28d60 Misc 2008-12-31 20:22:10 +00:00
robocop
dbb595ad86 Shut up compiler warning (unreachable code). 2008-12-31 05:07:26 +00:00
robocop
d11c994960 Style. 2008-12-31 05:06:08 +00:00
alexpeshkoff
4b20155e75 Fixed CORE-2262: Client connection is abruptly terminated 2008-12-30 15:23:06 +00:00
alexpeshkoff
9bdb3ecb7c assertion is wrong for event ports - to be reviewed by Vlad 2008-12-30 15:17:50 +00:00
alexpeshkoff
e7355ab712 misc 2008-12-30 15:16:47 +00:00
dimitr
c714df0aa9 Misc. 2008-12-29 20:57:40 +00:00
hvlad
df3c623874 Fixed bug CORE-2248 : AV in server.cpp\loopThread()
Removed not needed check for request's port in parent port clients list as
a) this check not needed anymore
b) this loop is performance killer
2008-12-19 09:01:44 +00:00
asfernandes
d03b6ede7f Misc 2008-12-18 01:24:58 +00:00
asfernandes
84dfa0e092 Fixed CORE-316 - Can't open database with MBCS/Extended characters in name.
Documentation soon.
2008-12-15 14:59:34 +00:00
robocop
f140cbb7d2 Before I put the "explicit" modifier on AtomicCounter's constructor, the compiler was generating a temporary AtomicCounter on the fly and later assigning it to the target AtomicCounter instance to satisfy an assignment of an integer to an AtomicCounter. I'm not sure we want to allow (and worse, foster) the copying of AtomicCounter instances or temporaries created by the compiler, hence I implemented a new method and fixed the code, but I don't know how to write the best code for one group of platforms in fb_atomic.h, hence I wrote the method with a syntax problem to be caught by someone who knows better. 2008-12-13 09:19:22 +00:00
hvlad
a93f6c32f0 Some thread safety 2008-12-12 10:06:32 +00:00
asfernandes
05947b7afc Misc 2008-12-12 00:55:03 +00:00
hvlad
ff268a4fb3 Sorry, again some debugging code was left 2008-12-11 11:51:10 +00:00
hvlad
9bcfe005cb Wait for end of all server's threads (at fb_shut_finish handler) to ensure no threads will access global variables (mutexes) during gds__cleanup phase of process shutdown. It must guarantee no races and AV's during process shutdown. 2008-12-11 11:49:52 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
robocop
d39690fbff Style (and let lines grow up to 100 columns). 2008-12-04 09:29:16 +00:00
asfernandes
744e83f240 Misc 2008-12-03 01:05:53 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
robocop
eb6ea18df4 Misc. 2008-12-01 09:21:31 +00:00
asfernandes
c1c7a4fb31 Fix Linux build 2008-11-30 20:09:28 +00:00
hvlad
ca8b78bcff Make WNET use overlapped (non-blocking) IO. It allows to break blocked IO operations and implement force_close() call correctly.
Also don't write in firebird.log "FileRead end-of-file" error on clean disconnect and don't write more than one OS error on the same port.
2008-11-30 11:47:30 +00:00
hvlad
56e5b9b544 FB_CANCEL_OPERATION supports only by TCP\IP transport currently 2008-11-30 11:41:03 +00:00
hvlad
2b6ba03d63 Implement new option (fb_cancel_abort) for fb_cancel_operation(). It allows forcebly close client port and allow application to shutdown even it wait of execution finish of some long running query. Use carefull !
Not implemented for WNET, work in progress.
2008-11-27 22:59:42 +00:00
hvlad
3c8c5b565c Fixed few bugs for XNET under high load. Improve XNET connections error diagnostics. Don't stop processing XNET incoming connections if one of them failed at initial stage (at XNET_conect). 2008-11-27 22:48:21 +00:00
alexpeshkoff
9ca7135efa fixed gcc warning 2008-11-24 17:04:29 +00:00
asfernandes
db82e7cd6b Misc 2008-11-06 00:23:21 +00:00
roman-simakov
4e6eaa17cd Fixed server crash by right mouse button clicking at server properties page on Windows x64 2008-11-05 16:48:27 +00:00
dimitr
d7d1e1d0a4 Let's don't use system_call_failed() for local exception handling. 2008-11-05 11:24:17 +00:00
hvlad
7918aaa256 Fixed AV in CS worker process (there was double deallocation of port).
Avoid wrong error message in firebird.log when listener is shutted down.
2008-11-04 14:22:51 +00:00
hvlad
a1ccc92d67 Fixed brocken -d mode of CS.
Fixed AV in CS worker process (there was double deallocation of port).
Add missed mutex control when port's list accessed.
2008-11-04 14:20:57 +00:00
dimitr
4c05d2d8dd Fixed CORE-2137: Database restore may crash the server when DummyPacketInterval is set. 2008-10-22 15:43:16 +00:00
dimitr
8e72ece026 Uncouple Mutex and RefMutex. This resolves the circular dependency: "AtomicCounter->Mutex->RefCounted->AtomicCounter" and thus enables all non-x86 POSIX builds. 2008-10-19 11:41:43 +00:00
robocop
66f41f7986 Simplify the #ifdef. 2008-10-16 08:52:16 +00:00
alexpeshkoff
065c4b0430 Disconnect all ports after shutdown of working threads 2008-10-13 16:04:15 +00:00
alexpeshkoff
1483d0e465 Need to keep reference count here too 2008-10-13 12:19:26 +00:00
alexpeshkoff
38a8b41c7f Avoid annoying messages in firebird.log 2008-10-10 15:50:07 +00:00
asfernandes
ac600b29d7 Misc 2008-10-09 00:59:56 +00:00
hvlad
ca2519263b Fixed bug CORE-2108 : "get_free_slot() failed" error 2008-10-04 19:41:18 +00:00
hvlad
857129d3f7 Initialize local variable 2008-10-04 17:46:31 +00:00
hvlad
4180370a7a Enlarge space reserved for strings in errors returned after attachment failure. It allow to report errors correctly for application which made a lot of simultaneous (failed) connections. 2008-10-04 17:45:58 +00:00
hvlad
c56ebce7bc Fixed bug CORE-2107 : Failed to establish TCP\IP connection with Windows Classic Server under high load 2008-10-04 17:14:51 +00:00
alexpeshkoff
2f803217f8 1. Never shutdown worker threads from fb_shutdown()'s callback -
instead do it at the end of main server loop.

2. Fixed races when worker thread(s) remained running after exit from main().

3. Added better protection by mutex to counter of worker threads.
Avoid possible races when worker thread starts.
2008-10-03 16:22:54 +00:00
asfernandes
e25ab5a1c6 Misc 2008-09-27 02:54:30 +00:00
robocop
b461e728ad Make inet_aton a function i Windows. 2008-09-24 11:27:37 +00:00
robocop
e1487d3684 inet_aton() does not exist in Windows. 2008-09-24 09:27:11 +00:00
asfernandes
3bf8ec8fb2 Misc 2008-09-24 02:02:38 +00:00
alexpeshkoff
14f21f568e 1. Fixed CORE-2087: server binds to all interfaces in case of error in firebird.conf.
2. Fixed CORE-2093: Superserver startup fails on solaris / 64 bit.

3. Improvement CORE-2094: Make it possible to use hostname when specifying interface to listen on in firebird.conf.

Almost impossible to separate: came in one week and required modifications in same part of code.
2008-09-22 14:46:13 +00:00
asfernandes
22c65f0153 Misc 2008-09-10 02:21:13 +00:00
alexpeshkoff
b63b160fdc make multiclient server shutdown in main thread with normal main port cleanup 2008-09-08 14:06:33 +00:00
alexpeshkoff
eecaa826e3 Cleanup - put two exit handlers with different tasks into separate functions 2008-09-08 13:59:53 +00:00
alexpeshkoff
41488cd241 restored old behavior in OOM conditions - thanks to Claudio 2008-09-08 13:26:47 +00:00
asfernandes
0f387a9bee Misc 2008-09-06 18:42:55 +00:00
alexpeshkoff
d66900f78a Refactored code saving strings in remote.cpp 2008-09-05 13:15:24 +00:00
asfernandes
96194d08ba Misc 2008-08-31 01:10:41 +00:00
asfernandes
a245731588 Partial fix for the Windows build 2008-08-27 15:33:56 +00:00
alexpeshkoff
13a15d4bfe 1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
alexpeshkoff
a5c262873a Better fix for CORE-2055, thanks to Claudio 2008-08-27 10:40:51 +00:00
alexpeshkoff
475913287b Fixed CORE-2055: BOF in fbclient 2008-08-27 08:05:29 +00:00
dimitr
6fb84abce3 Fixed CORE-2016: Client hang at use of XNET protocol in cases when database or attachment has been shut down. 2008-07-29 11:02:15 +00:00
dimitr
8f05c35f88 Misc. 2008-07-29 10:36:36 +00:00
alexpeshkoff
7c8427bc35 Separated CVT functions to common and jrd parts.
This made possible to avoid ugly CVT_move export.

Cleanup of errors handling in CVT functions.
2008-07-10 15:57:33 +00:00
asfernandes
4aa6ecbaf1 Misc 2008-07-06 18:08:23 +00:00
alexpeshkoff
5ac5869661 CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come. 2008-07-03 12:02:54 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
alexpeshkoff
99f17b4d00 1. Frontported fix for CORE-1944: Monitoring tables contain wrong data
2. Added new methods to Clumplet classes - date, time and floating point support.

3. Avoid endianess #ifdef's in Clumplet classes.
2008-06-24 13:07:12 +00:00
alexpeshkoff
b0f27fbf0c misc 2008-06-23 13:38:38 +00:00
alexpeshkoff
b2047f9fc7 Make SWAP_DOUBLE endianess dependent 2008-06-23 08:01:35 +00:00
dimitr
7832014210 Forward port the installer fix. 2008-06-13 14:01:45 +00:00
asfernandes
d30d6410ea Misc 2008-06-13 01:42:58 +00:00
paulbeach
d597247854 Support 64bit Darwin PPC 2008-06-09 12:02:59 +00:00
dimitr
bff84e9e7a Cleanup. 2008-06-06 15:55:36 +00:00
asfernandes
afad9993dc Misc 2008-05-31 02:34:54 +00:00
asfernandes
d5e481ba10 Linux IA-64 port 2008-05-22 15:02:59 +00:00
robocop
5cd11867ec Get rid of (ALLOC/FREE)_LIB_MEMORY macro as requested by Dmitry. 2008-05-22 09:38:21 +00:00
alexpeshkoff
ff7cfc717e Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter 2008-05-22 08:59:45 +00:00
alexpeshkoff
5e81cfa225 event_thread() should have own reference to the port. This minimizes chances
to get AV when client exits.
2008-05-21 12:43:41 +00:00
alexpeshkoff
796e02d2a5 1. Cleanup - use constants ISC_USER/ISC_PASSWORD instead of always repeated string constants.
2. Let services uses environment and OS auth when run embedded.
2008-05-19 13:58:37 +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
asfernandes
61ca51e7af Misc 2008-05-15 01:27:23 +00:00
hvlad
7d28033b39 Fixed bug CORE-1902 : XNET protocol does not work correctly in SuperClassic. Thanks to Alexander Potapchenko. 2008-05-14 22:33:10 +00:00
dimitr
579a979b1d Misc. 2008-05-14 17:27:07 +00:00
robocop
a2cd97355b Misc. 2008-05-14 09:24:14 +00:00
asfernandes
ee7a3f5930 Misc 2008-05-13 01:29:38 +00:00
alexpeshkoff
c0bf97f735 Make it possible to have normal operations after async ones in single network packet 2008-05-12 13:34:52 +00:00
robocop
8a28565ea7 Misc. 2008-05-08 08:19:50 +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
asfernandes
8d04f25fb3 Misc 2008-04-30 01:42:09 +00:00
alexpeshkoff
0ba2ab7ea7 Make fb_cancel_operation() public API call. Related cleanup. 2008-04-29 09:55:41 +00:00
alexpeshkoff
1b20fba1e9 Fixed "-s" switch in posix CS 2008-04-29 08:15:36 +00:00
alexpeshkoff
bf691d08c1 Cleanup - posix CS works with MT listener as expected. 2008-04-29 07:57:53 +00:00
robocop
649c1733e9 Misc. 2008-04-26 14:50:27 +00:00
paulbeach
2600e01b89 Fix optimisation problem on MacOSX ppc build that results in a segfault on exit for all utilities
Re-define __ppc__ where necessary
2008-04-25 10:14:54 +00:00
paulbeach
64df8dd761 Solaris 64bit AMD port 2008-04-25 09:42:19 +00:00
asfernandes
e18ac3cb53 Misc 2008-04-24 01:53:40 +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
alexpeshkoff
8a1b11482f Fixed races during disconnect 2008-04-21 09:53:28 +00:00
dimitr
46adac380c Misc. 2008-04-20 14:35:23 +00:00
dimitr
c74650aa5f Fixed CORE-1357. 2008-04-20 14:02:51 +00:00
robocop
3a5712db9e Style. 2008-04-19 11:33:37 +00:00
alexpeshkoff
742c1dce93 Linger should better be initialized 2008-04-18 10:52:29 +00:00
robocop
2f7d411479 Misc. 2008-04-18 09:50:26 +00:00
asfernandes
d75951e8e5 Misc 2008-04-18 01:37:44 +00:00
alexpeshkoff
d6d002143d comment 2008-04-17 17:09:10 +00:00
alexpeshkoff
6c6fdd44fa Fixed memory leak in rem_port::asyncReceive() and optimized it's performance.
Get it ready for non-IP protocols.
2008-04-17 17:05:40 +00:00
alexpeshkoff
3c35984950 fixed gcc compilation 2008-04-17 16:25:23 +00:00
dimitr
e1d3bbcb61 1) Simplified the internal provider API a little.
2) Passed the original filename (possibly an alias) via DPB. This way it can be transmitted through the remote subsystem.

Hopefully, this should fix CORE-1105, CORE-1390 and CORE-1566 at once.
Although a better hope would be that it won't break anything else :-)
2008-04-17 14:22:04 +00:00
dimitr
4a40b788da Correction. 2008-04-17 07:30:10 +00:00
hvlad
b59d7731ec Ensure port can't be deleted ... addition 2008-04-16 14:19:58 +00:00
hvlad
cd4d7ec93d Ensure port can't be deleted by another thread while receiving data (usual socket disconnect event) during disconnect. Just hold one more reference to it. 2008-04-16 12:48:28 +00:00
alexpeshkoff
f4f209cb6f Alan's patch for ARM 2008-04-15 14:14:57 +00:00
robocop
5294fda616 Misc. 2008-04-15 09:31:35 +00:00
asfernandes
79f8d2ceef Misc 2008-04-15 00:57:19 +00:00
alexpeshkoff
b0cc1c0481 Implemented remote cancel operation call. Switched to PROTOCOL_VERSION12. 2008-04-14 09:45:16 +00:00
asfernandes
a9413397a7 Feature CORE-1831 - Creation of GBAK restore switches FIX_FSS_DATA and FIX_FSS_METADATA 2008-04-11 12:57:52 +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
asfernandes
29fbfbb8ff Misc 2008-04-06 14:45:51 +00:00
robocop
1c52bbf025 It seems that finally the interfaces are synchronized.
The compiler produces a lot of errors when linking why.cpp against inter_proto.h (that has the real function signatures) instead of entry.h, but it's the only way to verify that the parameters are coherent.
2008-04-04 13:43:44 +00:00
dimitr
1c343cbadc Server-side fix for CORE-1820. 2008-04-04 09:17:17 +00:00
asfernandes
0adc1aa1f9 Misc 2008-04-04 02:14:17 +00:00
alexpeshkoff
6699ab0e15 Fixed CORE-1807: fbserver assigned to non-canonical port 2008-04-03 15:01:40 +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
asfernandes
b5f62a63b0 Misc 2008-03-30 20:43:36 +00:00
robocop
09be343d2f Misc. 2008-03-30 11:30:00 +00:00
robocop
27b24cccf3 The boss prefers clean() instead of the sui generis unset(). 2008-03-30 09:49:22 +00:00
robocop
f5c4d1853d Cleanup. 2008-03-30 09:38:24 +00:00
robocop
5b7cb4214b Fixing the damn interface.
Cleanup.
2008-03-30 09:37:57 +00:00
robocop
88349111c8 Probably I could put RFlags with a better name elsewhere for general usage, but for now I'll test the waters with Rsr. 2008-03-30 03:02:12 +00:00
robocop
9030e2a9d5 Misc. 2008-03-28 14:17:21 +00:00
robocop
443feabad9 Since Vlad and Alex did the hard work, I took the comment from Mike (approx 6 years ago) and did the small change function->method. 2008-03-28 13:36:19 +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
alexpeshkoff
4e5a83e767 1. Make remote port RefCounted object.
2. Removed deferred cleanup hack.
3. Fixed races when events are delivered - thanks to Vlad.
2008-03-27 10:15:05 +00:00
asfernandes
1e59afbc6e Misc 2008-03-27 02:27:56 +00:00
hvlad
2e7374735e Restore accidentally deleted lines 2008-03-26 14:20:43 +00:00
hvlad
afaa923f13 Use delete[] for arrays. Noted by Claudio. 2008-03-26 08:53:05 +00:00
asfernandes
ab3855585b Misc 2008-03-26 02:37:14 +00:00
hvlad
9318660f3a Finish cleanup in remote started by Alex (remove ALLR etc) 2008-03-25 18:58:31 +00:00
alexpeshkoff
21ca11f328 1. Moved processing of exceptions in guards' dtors to better place.
2. Added class Reference (RefCounted guard) and use it in the tree.
2008-03-25 08:44:11 +00:00
alexpeshkoff
6809f624fc Remote cleanup:
1. Avoid ALLR memory allocation routine (use new / delete).
2. Use common (TypedHandle) class to control consistency of handles.
3. Make ctors and dtors work - in most cases more work is needed to make them meaningful.
2008-03-24 15:28:38 +00:00
asfernandes
18f879a678 Misc 2008-03-23 18:21:49 +00:00
hvlad
5cb43d8f03 Fixed CORE-1763 : The client library does not set options SO_KEEPALIVE, TCP_NODELAY for socket at connection 2008-03-21 15:39:42 +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
2ba77dbed5 Fixed races when using uninitialized object in unhook_disconnected_ports - thanks to Dmitry Kovalenko 2008-03-21 09:12:43 +00:00
asfernandes
3aca6f92b1 Misc 2008-03-21 02:42:24 +00:00
hvlad
262379d8f9 Fix invalid variable for received data size 2008-03-19 18:52:31 +00:00
robocop
82f50ff590 Allocate only the needed buffer. 2008-03-18 12:58:21 +00:00
alexpeshkoff
ed25245303 Applied shutdown changes, discussed in fb-devel a week ago. 2008-03-17 16:49:47 +00:00
alexpeshkoff
3e95789206 Cleanup 2008-03-17 09:08:48 +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
asfernandes
262dbadc4f Misc 2008-03-15 17:55:27 +00:00
asfernandes
f4b520c589 Misc 2008-03-15 16:02:10 +00:00
hvlad
5c2300fc65 Fixed few my mistakes noted by Claudio 2008-03-15 13:46:28 +00:00
robocop
b741dd8a0d Simplification. 2008-03-15 10:28:25 +00:00
robocop
d9d95267a7 A bit more readable and more friendly with source code analysis tools (including code completion in editors). 2008-03-15 10:27:49 +00:00
alexpeshkoff
2571b5c1e1 Fixed races in client when working with events 2008-03-14 10:43:36 +00:00
hvlad
1a941e1ebe Correction. Thank to Adriano 2008-03-14 07:58:20 +00:00
asfernandes
4762e049ee Misc 2008-03-14 02:50:40 +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
alexpeshkoff
627e7f2846 Fixed unexpected server exits. Slightly better diagnostics for them added. 2008-03-13 12:05:49 +00:00
robocop
d5ff786e3d Misc. 2008-03-13 10:41:38 +00:00
dimitr
ff090e6a7b Cleanup. 2008-03-12 16:42:51 +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
2dfe40d2d0 Fixed fbclient's problem with releasing blob after transaction end. Reported by Dmitry Kovalenko in fb-devel.
The fix is like code in server.cpp
2008-03-12 09:50:46 +00:00
hvlad
b3cb185235 One more correction noted by Claudio 2008-03-12 09:41:34 +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
asfernandes
74d8711856 Misc 2008-03-08 21:20:26 +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
alexpeshkoff
58f8675e57 1. Make use of gds__log_status() more consustent (no Database: line in log when database is not specified).
2. A bit better logic when error happens during provider shutdown.
2008-03-03 13:59:09 +00:00
asfernandes
5d2ca89242 Misc 2008-03-01 18:24:06 +00:00
robocop
28d58050b4 Cleanup. 2008-03-01 11:49:04 +00:00
alexpeshkoff
48e9858b57 fixed CORE-1756: AV in isc_start_transaction (isc_start_multiple) 2008-02-29 16:44:17 +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
dimitr
c1f75dcdf8 Ported SQLSTATE from Vulcan.
Part II: handling of isc_arg_sql_state.
2008-02-24 15:02:04 +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
e41bdb2aa5 Shutdown the port instead of exiting the process. This has the same effect on CS but works for other modes as well. 2008-02-12 14:06:27 +00:00
alexpeshkoff
48f80bc4a3 fixed races during server shutdown 2008-02-06 17:26:35 +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
alexpeshkoff
e867656bf4 cleanup + additional security DB protection 2008-01-29 15:01:04 +00:00
dimitr
a3782c9362 Oops. Incomplete stuff has been accidentally committed. Rolled back now. 2008-01-28 14:09:05 +00:00
dimitr
b353ff4afb Misc sync changes. 2008-01-28 13:44:11 +00:00
dimitr
b68df58eac Misc. 2008-01-26 23:23:15 +00:00
dimitr
132176a475 Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 12:52:51 +00:00
alexpeshkoff
936eb2b3a8 Initialize context pool on server startup 2008-01-24 11:08:00 +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
asfernandes
61b51855a8 Misc 2008-01-20 23:51:21 +00:00
paulbeach
79a649377d Welcome to 64bit MacOS builds 2008-01-18 14:12:26 +00:00
dimitr
46b3b6c0dd Preparation for merging my own changes. 2008-01-17 13:07:03 +00:00
alexpeshkoff
5cd4cbc310 Applied Damyan's patch - MIPS linux port 2008-01-17 12:54:35 +00:00
asfernandes
05b90fa684 Eliminate some warnings 2008-01-16 14:37:26 +00:00
dimitr
c577fde263 The merge is being fixed. 2008-01-16 12:29:45 +00:00
dimitr
f25819fb19 The merge continued. 2008-01-16 07:55:28 +00:00
asfernandes
e0226e17fb Misc 2008-01-09 23:57:18 +00:00
dimitr
3201c3de4c Fixed CORE-1681. 2008-01-09 10:20:57 +00:00
hvlad
1f1a8c81fe More general fix for bug CORE-1561 : False isc_req_sync error may be reported by fbclient to the client application 2008-01-02 08:54:53 +00:00
paulbeach
b77b688fd5 Apply MacOS changes to HEAD 2007-12-20 09:02:21 +00:00
paulbeach
f0e34ffc83 Apply MacOS changes to HEAD 2007-12-19 14:35:52 +00:00
dimitr
804be84213 Fixed possible crashes due to an already disconnected port. 2007-12-15 10:30:03 +00:00
asfernandes
3b1be7ccdc Misc 2007-12-13 23:25:28 +00:00
robocop
5cf8293407 Totally misc. 2007-12-13 08:28:34 +00:00
hvlad
f13d7bb85b Fixed bug CORE-1651 : False isc_req_sync error may be reported by fbclient to the client application 2007-12-12 13:42: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
2b47bbe55b Revert files back after wrong commit 2007-11-19 00:21:18 +00:00
hvlad
86f1141328 Execute statement with support of external data source 2007-11-18 22:59:20 +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
robocop
2d2b8cf718 Misc. 2007-11-17 10:18:10 +00:00
paulbeach
c823619e92 HPUX Port 2007-11-12 15:18:49 +00:00
alexpeshkoff
b50399cdb5 Better fix for CORE-1558 2007-11-05 13:18:40 +00:00
alexpeshkoff
52c9aca3d4 Fixed CORE-1558: Help people get core files in case of abort() on BUGCHECK 2007-11-02 15:14:57 +00:00
robocop
a3dfe97258 Parameter blocks are UCHAR streams.
Make their length unsigned, too.
2007-10-29 03:23:56 +00:00
robocop
bfa4af4467 Simplify code. 2007-10-29 03:18:20 +00:00
asfernandes
76f3f85b80 Misc 2007-10-29 00:19:27 +00:00
dimitr
9e6ad731e3 Let's use the new method for other similar cases as well. 2007-10-28 20:36:28 +00:00
skidder
09cfae0e0a Allow local protocol to work with servers running both under restricted accounts (e.g. Vista regular user) and unrestricted accounts (e.g. LocalService) 2007-10-28 14:47:19 +00:00
alexpeshkoff
5bf6bd05d9 Fixed CORE-1543: Security bug in trusted authentication 2007-10-26 13:17:33 +00:00
hvlad
cb18e4f44d Fixed bug CORE-1519 : AV in isc_dsql_fetch 2007-10-17 08:56:06 +00:00
asfernandes
981489e1a4 Misc 2007-10-15 01:02:01 +00:00
dimitr
0ec83aa0ec VMS cleanup continued -- thanks to Claudio. 2007-10-14 15:24:24 +00:00
hvlad
d1ade42420 Fixed bug CORE-1515 : Error isc_bad_req_handle at isc_commit_transaction call 2007-10-14 12:25:17 +00:00
asfernandes
16bc18df54 Misc 2007-09-15 02:37:04 +00:00
dimitr
697d77edec Fixed CORE-1459. 2007-09-14 06:55:15 +00:00
dimitr
204b2881e7 Fixed CORE-1460.
Make INET to use the same buffer as other transports instead of the hackery usage of p_resp_blob_id.
2007-09-14 06:00:17 +00:00
hvlad
48f6c27d24 Reduce XNET read\write wait timeout. It allows faster detect failures on the other part of connection 2007-09-13 13:24:59 +00:00
hvlad
f8a6ea8564 Fixed bug CORE-1456: Wrong events delivery in the case of concurrent XNET connections 2007-09-13 13:23:10 +00:00
dimitr
8d121c77a9 Fixed CORE-1452. 2007-09-12 08:17:16 +00:00
asfernandes
4dd7b4c668 Misc 2007-09-12 02:31:28 +00:00
robocop
158e200ede Misc. 2007-09-11 09:31:51 +00:00
hvlad
4a72397c71 Fixed bug CORE-1430 : AV in fbclient.dll if statement prepared and executed right after events was registered 2007-08-28 19:35:53 +00:00
dimitr
07ebaa0ce9 Fixed CORE-1403. 2007-08-03 08:41:45 +00:00
hvlad
1b06f7802a Fixed bug CORE-1397 : Possible vulnerability in remote server 2007-08-02 16:26:21 +00:00
asfernandes
613faffafb Misc 2007-08-02 02:00:37 +00:00
hvlad
4d2211d61f Fix for CORE-1388 : Can't attach to remote service manager if remote engine version is less than 2.0 2007-07-31 10:49:52 +00:00
robocop
6f3d9cf06d Misc. 2007-07-31 08:36:38 +00:00
dimitr
01232a2def Fixed client crashes when the server unexpectedly died. Hopefully, it should solve CORE-1194. 2007-07-30 09:58:18 +00:00
paul_reeves
d1f5482882 Be consistent in usage of FB_DEFAULT_INSTANCE. 2007-07-26 09:58:32 +00:00
hvlad
77f2bf6dd5 Fixed bug CORE-1372 : isc_dsql_fetch called after isc_commit_transaction not raised error 2007-07-20 12:40:12 +00:00
hvlad
caa5194ad8 Fixed bug CORE-1349 : Remote interface not checked in REM_receive and REM_fetch client supplied message length against length of format of message 2007-07-06 12:46:07 +00:00
robocop
0d71e5b00f Misc (to match an almost identical code elsewhere). 2007-06-24 08:53:51 +00:00
alexpeshkoff
139e9c9a64 fixed bug in my last commit 2007-06-21 12:04:49 +00:00
alexpeshkoff
31beadfb64 fixed BOF during op_connect processing, avoid use of sprintf() in remote 2007-06-21 08:40:04 +00:00
hvlad
0593719f67 Additional patch for CORE-1310 : Got "request synchronization error" when calling isc_dsql_sql_info with isc_info_sql_records parameter after last record fetched 2007-06-09 11:06:59 +00:00
hvlad
a3757ab602 Fixed CORE-1310 : Got "request synchronization error" when calling isc_dsql_sql_info with isc_info_sql_records parameter after last record fetched 2007-06-08 12:41:18 +00:00
alexpeshkoff
ea8ba3370d Cleaned up mutexes - removed MUTX_T and related macros 2007-06-06 12:37:24 +00:00
robocop
d90bf91fbd Misc. 2007-06-06 08:08:36 +00:00
hvlad
5dab01a578 Fixed CORE-1303 : Infinite loop in SS remote listener 2007-06-04 14:17:15 +00:00
hvlad
f31a3116ec Fixed bug with wrongly initialized remote statement when lazy_port feature active.
It visible with TCS's test DSQL_DOMAIN_20
2007-06-01 12:46:30 +00:00
hvlad
a010a612a6 Fixed bug reported by Adriano in fb-devel : exception occurred after 3rd suspend reported by fbclient after 1st fetch.
Solution is to check for statement's exception not at every fetched row but before first fetch only.
2007-05-28 20:09:18 +00:00
hvlad
0eb638700f Fix for CORE-1276: Sometime INET error reported as 0 in firebird.log instead of real error code 2007-05-21 20:25:42 +00:00
hvlad
88671bf258 Correct error handling for deferred executed statements 2007-05-17 13:03:57 +00:00
dimitr
bc7c4d0054 Added remote process name to the monitoring data. Applications are allowed to override this value via DPB. 2007-05-16 07:54:33 +00:00
robocop
f2f3d205ce Misc. 2007-04-20 09:47:14 +00:00
alexpeshkoff
24015c14cd fixed gcc warning 2007-04-19 09:12:32 +00:00
hvlad
a6314265ef Fixed CORE-1206 : 'Error reading data from connection' when Lazy Port feature active and more that one active cursors present 2007-04-14 08:26:57 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
edfa819bf7 restored functionality of -e family of switches, broken somewhere in 1.5 2007-04-05 12:47:20 +00:00
hvlad
c13e67fe49 Restored broken compatibility between clients and servers of different versions (2.1 and other) 2007-04-04 10:31:47 +00:00
robocop
b776f1f19c Minor corrections. 2007-04-03 08:18:11 +00:00
hvlad
2c10b3ff92 Implement one more LazyPort feature : defer op_execute packet when it possible 2007-04-01 21:42:40 +00:00
alexpeshkoff
d108970f7f Patch by Damyan Ivanov for Mipsel 2007-04-01 10:04:28 +00:00
asfernandes
33988b1a79 Misc 2007-04-01 02:04:58 +00:00
alexpeshkoff
dec4ded1f5 fixed unregistered bug, reported by Dmitry privately - partial and full XDR packets may be mixed now in network packets in any way 2007-03-30 12:56:57 +00:00
alexpeshkoff
9068d7787f Frontported alignment and endianess fixes from 2.0 2007-03-25 16:09:00 +00:00
asfernandes
20299bb856 Misc 2007-03-24 17:44:09 +00:00
alexpeshkoff
5f19566f76 Patch by Damyan Ivanov - accept localhost connections without /etc/host.equiv 2007-03-22 13:13:38 +00:00
alexpeshkoff
2c93118e86 Misc diagnostics 2007-02-24 11:27:52 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
hvlad
bc521d75a3 Fixed CORE-1119 : Bad code in status vector when running ISC_ER30 from fbtcs 2007-02-01 22:05:18 +00:00
alexpeshkoff
d66281291f 1. Make classic server close shutdown normally when killed by signals 2 & 15.
2. Don't leave running instances of fb_inet_server after database shutdown.
3. To make all this possible - reworked Y-Valve in general.
2007-01-20 14:45:45 +00:00
alexpeshkoff
82786a4548 do not terminate DEV_BUILD program in case of unknown operation in packet 2007-01-20 14:12:33 +00:00
hvlad
cba92d53f3 Fixed CORE-1097 : isc_dsql_set_cursor_name() fails 2007-01-17 20:06:17 +00:00
alexpeshkoff
094ac1f8c7 front-port - override ulimit setting for DEV_BUILD 2007-01-15 17:37:21 +00:00
robocop
91544a92e0 Totally misc. 2006-12-29 08:48:28 +00:00
hvlad
a1e9297bbd Fixed CORE-1067: AV in the engine using some API calls when 'lazy port' feature active 2006-12-25 10:28:41 +00:00
alexpeshkoff
2f48fc38f7 1. Closed security whole with malformed DPB/SPB
2. Avoid memory leak when exception is thrown.
3. Better diiagnostics.
Thanks to Claudio.
2006-12-17 15:53:46 +00:00
robocop
4afa6a29cb Misc. 2006-12-17 09:09:39 +00:00
dimitr
6466e7b12d 1) WNET and XNET cannot support OOB transmission, so they should not ask for that.
2) Cleanup the INET protocol types.
2006-12-15 15:47:52 +00:00
alexpeshkoff
6bb3545558 fixed posix build after my latest changes 2006-12-10 13:45:02 +00:00
asfernandes
854d870d8f Misc 2006-12-10 00:16:00 +00:00
asfernandes
a150855ef8 Misc 2006-12-09 01:23:17 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
dimitr
bdc09b234a The remote subsystem should not guess about the internal structure of BLOB ID. 2006-12-04 21:42:27 +00:00
dimitr
25bf9d6c11 Fixed CORE-1017. 2006-11-28 10:21:21 +00:00
asfernandes
d8e10bbe1f Misc 2006-11-21 00:20:35 +00:00
dimitr
3edda730cd Attempted to fix XNET for the mixed 32-bit and 64-bit process interaction.
The binary memory layout is still the same, so I didn't bump the protocol version number.
2006-11-20 12:18:51 +00:00
dimitr
21e3b7e302 Let's never use native datatypes in the protocol structures. time_t in VC8 is 8 bytes long by default. 2006-11-20 07:55:39 +00:00
dimitr
ce77a882c4 Fixed XNET in Win64 builds. 2006-11-20 07:31:30 +00:00
asfernandes
a1c9b22868 Misc 2006-11-02 19:55:20 +00:00
dimitr
71801a4e0d Corrections (Win64 related). 2006-11-01 07:11:09 +00:00
dimitr
9ae3ad0c0a Win64 adjustments. 2006-10-30 14:18:02 +00:00
dimitr
f68e287a0b Win64 adjustments. 2006-10-30 14:13:30 +00:00
dimitr
78fb4f3fe0 This is supposed to fix pre-VC8 builds. 2006-10-30 13:05:51 +00:00
dimitr
89183deea6 This is supposed to fix pre-VC8 builds. 2006-10-30 13:00:40 +00:00
dimitr
9db2c1cbd4 Win64 adjustments + cleanup. 2006-10-30 12:41:23 +00:00
asfernandes
efcadd67a1 Misc 2006-10-25 15:09:13 +00:00
paulbeach
d668ed78e6 Commit the right inet.cpp and fix for CORE-966 2006-10-25 09:54:32 +00:00
robocop
27a9f9d586 Undo Paul Beach's fix for CORE-966 in HEAD because the patch is malformed and contains outdated code. Maybe it was intended for v2.0. 2006-10-25 07:05:25 +00:00
paulbeach
dd89b18833 Fix for Core-966 2006-10-24 15:06:24 +00:00
alexpeshkoff
2d5a3061d7 Instead of rejecting connect packet with more than 10 protocols
try to use first 10 of them, ignoring others.
2006-10-09 13:16:18 +00:00
dimitr
dd91852178 Simplified the code as Adriano suggests. 2006-09-15 06:11:34 +00:00
dimitr
7c405166aa 1) Support for client PID in the monitoring data.
2) Changed XNET to return local hostname instead of PID as its remote address.
2006-09-14 13:47:31 +00:00
dimitr
b018393168 Fixed CORE-923. 2006-09-12 06:48:03 +00:00
dimitr
00080ab731 More patches for Win64 compatibility. 2006-08-02 05:28:57 +00:00
dimitr
a09dc97d6b Corrections, thanks to Claudio. 2006-07-20 06:19:25 +00:00
asfernandes
ea0435247a Misc 2006-07-18 02:45:35 +00:00
dimitr
a9348e5766 Fixed CORE-833. 2006-07-17 11:10:18 +00:00
dimitr
2bc42d7dba Cleanup. 2006-06-02 08:26:08 +00:00
alexpeshkoff
b953f965b0 Fixed setsockopt() level - thanks to Fred 2006-06-02 07:16:39 +00:00
alexpeshkoff
a2720f8e51 Fixed my previous commit 2006-05-29 16:36:49 +00:00
alexpeshkoff
b36b5fb9a0 Report failure instead of having AV in case of too many suggested protocol versions 2006-05-29 16:34:06 +00:00
alexpeshkoff
d8560dd061 common code to set NODELAY option 2006-05-24 14:08:06 +00:00
robocop
9886d09647 Misc. 2006-05-20 04:22:07 +00:00
robocop
ae51945b18 Misc. 2006-05-20 03:31:05 +00:00
asfernandes
292ad66e96 Misc 2006-05-20 01:53:51 +00:00
asfernandes
f772eae2c8 Fix windows build 2006-05-20 01:48:05 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
asfernandes
df37723a48 Misc 2006-05-02 01:32:41 +00:00
robocop
07f4bed382 I don't want another "interprete", so I rename "defered" to "deferred". 2006-05-02 00:04:12 +00:00
hvlad
f94b8bd641 Merge B1_5_Remote_LazyPort branch into HEAD 2006-05-01 22:23:31 +00:00
robocop
d306dc5ef4 Since TCP_NO_DELAY is gone, comments regarding it are obsolete. 2006-04-29 03:01:40 +00:00
robocop
150112b8c3 Delete obsolete code after Dmitry's changes. 2006-04-21 06:33:11 +00:00
dimitr
ccc620e334 A bunch of changes targeted to support multi-instancing on win32. 2006-04-20 10:35:44 +00:00
robocop
67919047a2 Try to comply with MacOS docs... there's work to do in inet.cpp with FB_SETOPT_FLAGS. 2006-04-19 03:07:34 +00:00
robocop
a278bc8413 Style. 2006-04-19 03:05:09 +00:00
alexpeshkoff
f12d282788 avoid too much #ifdef's inside the file 2006-04-18 09:43:37 +00:00
robocop
a2d0a4d348 Style. 2006-04-18 04:50:02 +00:00
robocop
a89957c0ab Restore Win32 port to compilable state. 2006-04-18 04:48:32 +00:00
kkuznetsov
450fc1d863 Fix compile error on Solaris 2006-04-17 18:39:22 +00:00
alexpeshkoff
4eb30fcf39 Don't raise SIGPIPE when other side terminated connection 2006-04-17 15:52:56 +00:00
alexpeshkoff
105bff246e removed unneeded h-file 2006-04-17 10:40:28 +00:00
asfernandes
48abddae4c Use THREAD_SLEEP as sleep don't exist in WIN32 2006-04-16 17:09:02 +00:00
alexpeshkoff
fb4888dca1 shutdown working threads before server shutdown 2006-04-14 16:46:12 +00:00
robocop
2e9353d7e7 Delete dead code after checking with Dmitry.
The B.O. are still there when copying the result of GetCommandLine().
2006-04-11 07:18:53 +00:00
robocop
192832199f Solve a possible truncation problem due to USHORT<->ULONG issues.
Tweak for embedded so it doesn't crash when handling an error.
2006-04-11 07:16:37 +00:00
robocop
00c9d548a6 Handle zero-length strings even if we have our buffer full. 2006-04-09 06:53:38 +00:00
robocop
eb727adf2f We can't handle more than 255 bytes for some items when merging information. Let's be consistent between the length indicator and the bytes we put in the buffer. 2006-04-09 06:50:46 +00:00
robocop
4243e7bcc4 Style. 2006-04-09 06:46:28 +00:00
robocop
b8636c120b Refactor this damn unreadable code and take into account the problem Adriano found with zero length file names in my previous commit. 2006-04-09 00:53:55 +00:00
robocop
1f22045df1 I think I'm fixing a potential buffer overrun here. 2006-04-07 04:51:13 +00:00
asfernandes
2b5eef3103 Correction 2006-04-07 02:55:34 +00:00
alexpeshkoff
f59a457b5d validate port_context before use to avoid AV in remote 2006-04-06 13:34:09 +00:00
robocop
c5f2284b15 Style. 2006-04-06 08:18:53 +00:00
dimitr
442ff93a3b Nagle algorithm is now disabled by default, so there's no need to print an appropriate message in the server log. 2006-04-05 07:08:32 +00:00
dimitr
d123ead3a5 1) Set NoNagle depending on config only.
2) Set socket options for Win32 CS.
2006-04-05 05:04:52 +00:00
alexpeshkoff
1b6df6110a fixed server hang in case of broken client 2006-03-20 16:29:04 +00:00
dimitr
5699faf1b5 Let's not duplicate things. 2006-03-17 16:08:04 +00:00
alexpeshkoff
74b7418943 we should not loose status vector held in status_exception 2006-03-15 17:25:49 +00:00
robocop
7250b931cf Commit Alex' fix for a buffer overrun. 2006-03-15 04:22:38 +00:00
robocop
8f1cf8f2cb Commit correct signature for events-related calls. 2006-03-10 08:23:40 +00:00
dimitr
eba22db548 Fixed an exception during events shutdown, reported in fb-devel. 2006-03-09 17:52:17 +00:00
robocop
179a4b7cfb Style. 2006-03-07 05:44:13 +00:00
asfernandes
22eca372ab Formatting 2006-03-07 03:12:48 +00:00
alexpeshkoff
402d918e74 Use named constant for buffer size 2006-03-06 13:51:58 +00:00
alexpeshkoff
318533fea5 no need to check '<0' for unsigned variables - thanks to Adriano 2006-03-06 13:36:55 +00:00
alexpeshkoff
b4ed43ddf8 1. Fixed win32 classic build.
2. Attempt to fix SF#1260310.
2006-03-06 11:03:19 +00:00
alexpeshkoff
9e21527396 fixed debugging code - thanks to Claudio 2006-03-05 10:26:45 +00:00
alexpeshkoff
a6151c44c9 Fixed SF bug 1385092 2006-03-03 16:20:42 +00:00
robocop
10cb928ddc More cleanup. 2006-02-23 06:52:25 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
dimitr
7c8f6e2717 Fixed broken XNET logic. In fact, this affects all types of connections as the security database is accessed locally. 2006-02-07 18:41:06 +00:00
dimitr
9ec3909c08 Fixed XNET to follow the common call architecture for the remote subsystem. Just hope I didn't break the logic. 2006-02-05 18:03:00 +00:00
dimitr
1483c3abd0 Implemented SRVR_debug for XNet connections on win32. 2006-02-04 16:10:14 +00:00
dimitr
0ef2f98b75 Fixed SRVR_debug for INet connections on win32. 2006-02-04 11:32:14 +00:00
dimitr
7ca955e43a Minor cleanup. 2006-02-04 10:37:15 +00:00
hvlad
73dcebc962 Replace "../jrd/jrd_time.h" with "../common/classes/timestamp.h" 2006-02-03 13:13:27 +00:00
dimitr
878ef6a583 Reduced dependencies upon window messages + cleanup. 2006-01-26 12:23:48 +00:00
alexpeshkoff
d1ee840d60 fixed gcc warning(s) 2006-01-16 16:49:15 +00:00
alexpeshkoff
4b40679a8d fixed posix build 2006-01-16 08:47:20 +00:00
robocop
3b64ed4102 Detect if some undocumented startup option failed (Windows). 2006-01-14 04:56:13 +00:00
robocop
b67b0219ab Change from getenv to readenv. This is still getenv in Linux/UNIX but GetEnvironmentVariable in Windows. 2006-01-14 04:48:59 +00:00
dimitr
ed9eb5c9cd Fixed the wrong local connection. 2006-01-12 13:21:25 +00:00
alexpeshkoff
e76972ef21 rollback temporary fix after fixing status_exception 2006-01-07 16:53:35 +00:00
robocop
1e6d89ebfc Comment excessive dependencies on license.h. 2006-01-07 00:31:37 +00:00
robocop
6da2dcf373 Remove leftover from Apollo. 2006-01-06 22:42:09 +00:00
alexpeshkoff
dccce62333 simpler way to detect redirection attempt 2006-01-06 12:29:12 +00:00
alexpeshkoff
1ecaaa049e fixed "invalid database handle" error 2006-01-06 11:21:57 +00:00
alexpeshkoff
4447d705c8 fixed bugs in server version reporting 2005-12-29 08:06:11 +00:00
robocop
5608b9be1f - Handle gracefully the exceptions that happen at startup in Windows.
- Show the version string if asked explicitly.
- Some minor cleanup.
2005-12-25 07:40:16 +00:00
robocop
75ddccb613 Misc. 2005-12-25 04:01:49 +00:00
alexpeshkoff
688cfd53eb Misc 2005-12-23 08:52:31 +00:00
robocop
b5210ff5fd Fix for crash in Alex' disable multi-hop config param. 2005-12-22 06:02:02 +00:00
alexpeshkoff
8de8ef96ce added Redirection parameter to firebird.conf 2005-12-21 10:10:37 +00:00
alexpeshkoff
2f880b3fd9 removed unneeded any more function 2005-12-01 17:32:56 +00:00
dimitr
e4f0ad0358 Fixed lost PORT_async flag for WNET + misc. 2005-11-30 12:37:00 +00:00
robocop
d823b52bdc Misc. 2005-11-30 07:45:49 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
dimitr
b570b3e3db Fixed cleanup of the broken port in classic. Let's always close the connection properly. 2005-11-24 14:03:26 +00:00
dimitr
11b954f324 Fixed a couple of issues in the port cleanup logic:
- improper thread data operations
- no rollback for a broken INET port
2005-11-24 12:15:41 +00:00
robocop
107eceef33 Misc. 2005-11-24 04:03:25 +00:00
alexpeshkoff
b5417537e6 fixed redirection issues 2005-11-20 17:02:42 +00:00
robocop
d1373b1555 Fix clash with winbase.h on IGNORE. 2005-11-18 04:39:47 +00:00
robocop
44c31e922d Fix funny message in a resource. 2005-10-28 04:15:56 +00:00
robocop
69d03eec33 Fix allocation bug. 2005-10-05 08:39:07 +00:00
dimitr
ec27d021fd Cleanup. 2005-08-31 16:08:14 +00:00
dimitr
946d9cb5c3 Cleanup. 2005-08-31 14:55:10 +00:00
dimitr
7bea958551 Removed the unused file. 2005-08-31 13:19:23 +00:00
alexpeshkoff
dfe04f6635 Fixed signal safety problems in SS shutdown 2005-08-29 15:00:15 +00:00
dimitr
0ce1d52f3e Slightly changed (mostly cleaned up and fixed) the SS shutdown mechanics. 2005-06-24 11:14:51 +00:00
dimitr
054af913ae Fixed possible event handler crashes during detach. 2005-05-31 16:10:15 +00:00
dimitr
6d333a5af5 Fixed bug introduced 1.5 years ago. 2005-05-06 13:15:32 +00:00
alexpeshkoff
db5c130d72 Make EACCES non-fatal when setting TCP_NODELAY 2005-04-29 17:03:46 +00:00
robocop
d0115322ac Misc. 2005-04-18 03:24:34 +00:00
alexpeshkoff
808422abaf fixed windows build 2005-04-14 17:06:14 +00:00
alexpeshkoff
504ec492ab Shutdown SS without SYSDBA password 2005-04-11 15:33:18 +00:00
kkuznetsov
633ec5fd26 Fix my error which breaking non posix things 2005-04-06 13:02:13 +00:00
robocop
46e96a4f8e Style. 2005-04-05 06:47:17 +00:00
kkuznetsov
d983edd500 Temporally block assertion on Solaris platform to go testing 2005-04-04 12:57:10 +00:00
kkuznetsov
438005440f Allow setting TCP_NODELAY socket option in Classic Server
and make if default true on both arhitecture.
2005-04-04 12:54:34 +00:00
robocop
86492a7b36 Simplify B.O. protection. 2005-03-26 05:02:09 +00:00
alexpeshkoff
e62caf14c8 fixed 2 BOFs, cleanup 2005-03-23 10:32:28 +00:00
alexpeshkoff
b9ec5835b4 fix gcc warning 2005-03-20 13:55:21 +00:00
aafemt
8eeb34967b no more THD_* stuff in client 2005-03-10 10:23:52 +00:00
dimitr
9efa04ae30 Fixed improper loopback connection via XNET. 2005-03-09 16:26:41 +00:00
alexpeshkoff
f4cd5a154f Changed name to security2.fdb 2005-02-24 12:24:38 +00:00
dimitr
d1c94854e3 Allow XNET connections from the same process (e.g. from UDFs). 2005-02-03 14:07:31 +00:00
robocop
446088ab7b Fix recent commit by Frank. I cannot compile to verify. 2005-01-29 09:22:36 +00:00
fsg
dbee2f3c8c get it built again 2005-01-27 13:19:16 +00:00
robocop
e7bd3ca440 Misc. 2005-01-19 08:54:51 +00:00
dimitr
7d371a8959 Disable XNET for the embedded server. 2005-01-18 21:45:56 +00:00
dimitr
03cfc7c237 Changes and cleanup regarding XNET vs old-style IPC. 2005-01-16 12:35:27 +00:00
dimitr
f49849da03 Changes and cleanup regarding XNET vs old-style IPC. 2005-01-16 12:20:09 +00:00
dimitr
b37a6f707a Changes and cleanup regarding XNET vs old-style IPC. 2005-01-16 11:25:18 +00:00
aafemt
cf54708af3 Fix fearful warning 2005-01-13 07:31:17 +00:00
alexpeshkoff
80e0be646b 1. fixed AV during SS shutdown on NT
2. removed duplicated WSACleanup() call
2005-01-11 10:08:30 +00:00
robocop
bd0af404fd Misc. 2004-12-28 05:21:00 +00:00
alexpeshkoff
c5445c969b user_id clumplet cleanup 2004-12-26 13:48:01 +00:00
robocop
1718ae5a45 Misc. 2004-12-26 04:09:06 +00:00
robocop
4012106884 Misc. 2004-12-25 09:44:03 +00:00
robocop
d65307b497 Style. 2004-12-24 08:52:39 +00:00
robocop
41b75cdf60 Misc. 2004-12-23 03:03:13 +00:00
alexpeshkoff
1a680fd13f front-ported one of the latest changes of 1.5.0 2004-12-19 16:29:23 +00:00
robocop
342a5afcc6 Misc. 2004-12-17 06:22:37 +00:00
robocop
d2b91e9446 Minimize forced casts. 2004-12-17 05:56:04 +00:00
robocop
24742873ad fb_string.h is moved to common/classes. 2004-12-17 05:41:47 +00:00
robocop
2814294027 Misc. 2004-12-16 03:03:13 +00:00
robocop
f550ca480f Misc. 2004-12-09 02:53:19 +00:00
robocop
014d90ff59 Misc. 2004-12-08 04:12:26 +00:00
robocop
af6a16107a Misc. 2004-11-30 06:18:39 +00:00
skidder
0e68abffbf Address the security issue in remote address handling code pointed by Claudio. Hack REMOTE server-side exception handling to make it not crash when exceptions actually happen. The latter seems to be the very old problem, in IB6 code looks the same 2004-11-29 04:39:20 +00:00
robocop
bb170bd3b6 isc_interpret is fb_interpret again.
Please do a full rebuild.
2004-11-28 01:03:05 +00:00
robocop
425bbc8ef9 Comment no longer applies. 2004-11-27 05:45:46 +00:00
robocop
cda53de35d It seems to me those debugging reports are better read as text files. 2004-11-27 03:33:22 +00:00
skidder
55c4e0ac85 CLIENT_ADDRESS and NETWORK_PROTOCOL variables support 2004-11-26 01:01:27 +00:00
robocop
d6535351a2 Misc: style. 2004-11-24 09:22:07 +00:00
robocop
070eaa8415 Misc. 2004-11-18 08:40:13 +00:00
hvlad
b4a0d39fe1 Fix buffer overflow when string carried with status vector is too large. String will be truncated to 1023 bytes 2004-11-17 12:25:22 +00:00
robocop
eb99bbcccf Poor man's version of the old gds_alloc_report. 2004-11-17 08:56:07 +00:00
alexpeshkoff
820dbe9156 restored broken by me const-correctness in remote 2004-11-16 11:43:05 +00:00
robocop
c2b5cbc541 Totally misc: consistency with the other places. 2004-11-16 06:16:19 +00:00
alexpeshkoff
6bd833026a restored broken by me const-correctness in remote 2004-11-15 15:52:57 +00:00
robocop
56201d1a86 Consistency. 2004-11-08 07:09:15 +00:00
robocop
6c301739f8 Misc. 2004-11-08 07:08:06 +00:00
robocop
2ec848a3b9 Treat string literals and string constants with more respect. 2004-11-08 05:38:42 +00:00
robocop
e5ac2effd4 Misc. 2004-11-08 03:09:27 +00:00
alexpeshkoff
ff5dd732d3 more active use of Firebird::string in remote 2004-11-07 14:44:59 +00:00
robocop
5a33aeef91 Misc: extra semicolons do not help. :-) 2004-11-07 10:38:13 +00:00
skidder
3e26513b38 fb_interpret->isc_interpet, deprecate isc_interpete, clean interface a little bit 2004-10-25 03:53:03 +00:00
dimitr
2d36d98bdc 1) Backport my previous fix from B1_5_Release branch
2) Another events-related bugfix
3) Some cleanup
2004-10-20 17:42:36 +00:00
skidder
645074699e Improve firebird reliability in failure cases on Windows 2004-10-15 23:07:59 +00:00
robocop
f6b5de8a7a Redundant casts.
Getting rid of IPSERV.
2004-10-09 01:37:30 +00:00
robocop
336661d8a1 Style. 2004-10-08 08:13:22 +00:00
robocop
25f115b66e Closing several possible buffer overruns.
Alex is expected to overwrite my changes in isc_file.cpp.
2004-10-08 04:48:02 +00:00
robocop
273665c953 ipserver is being deleted. Update source files. 2004-10-03 07:04:44 +00:00
paul_reeves
5862524ba2 No need to specifically log sigpipe errors when running SuperServer on *nix 2004-09-29 10:11:54 +00:00
dimitr
7832801092 Removed impersonation code. Minor cleanup. 2004-09-28 17:54:41 +00:00
robocop
ddbe44520b Got rid of incredibly redundant cast. 2004-09-26 07:49:55 +00:00
robocop
7dcb66a250 When you call va_start, call va_end, don't assume it does nothing because some platforms don't have code for it!
Changed some sprintf to SNPRINTF. Work in progress WRT wrapper for this function.
2004-09-25 10:28:09 +00:00
robocop
e4da3532f2 Nonsense cast 2004-09-24 06:46:04 +00:00
robocop
5b60cf7e33 Put some assertions, a strncpy and a correction of a debug msg 2004-09-24 06:42:39 +00:00
dimitr
a3f7978e5f Replaced sprintf() with either Firebird::string or snprintf().
Got rid of the literal numerics as array bounds.
Minor cleanup.
2004-09-22 20:33:07 +00:00
robocop
d869cfd034 Misc 2004-09-22 11:07:51 +00:00
robocop
362f95df8a Got rid of some casts that were driving me nuts on each compilation 2004-09-22 08:54:42 +00:00
robocop
adc2e01407 Misc 2004-09-22 08:49:50 +00:00
robocop
e6cb17cac6 Vulnerability reported by Daniel Urban.
First step: reorganize code.
Please do a full rebuild after retrieving those changes.
2004-09-22 01:59:39 +00:00
skidder
658bd8ec5e Cleanup 2004-09-16 22:25:22 +00:00
kkuznetsov
7a1f35db67 os/sun/server_main_dummy.cpp is a file with noop routine
server_main to put into libfbclient
	if it defined by firebird.vers mapfile while
	linking libfbclient with Sun-like LD
2004-09-15 08:31:32 +00:00
dimitr
ed0b83ad8a Fixed issue SF #571026. 2004-09-05 19:37:43 +00:00
dimitr
7d3578cea8 Fixed bug SF #223058 2004-09-05 14:08:04 +00:00
dimitr
95f97b91cf Cleanup. 2004-09-05 13:53:56 +00:00
dimitr
b4c3010dc8 Fixed possible SEGV errors in the op_connect handler. 2004-09-04 20:09:24 +00:00
alexpeshkoff
c3db4aaa97 added (and used in sources) template to change and restore default pool 2004-08-30 18:11:08 +00:00
dimitr
0df4efd900 Fixed bug introduced by Blas' cleanup yesterday. 2004-08-28 07:30:17 +00:00
brodsom
aaaddf7642 Fix ,silence non initialized warnings 2004-08-26 23:27:46 +00:00
skidder
f5e58b038a Again, do not send trash over the wire 2004-08-13 03:07:11 +00:00
dimitr
95562449e2 Applied patch by Chris Waters to support NAT by the events mechanism. 2004-08-01 17:44:24 +00:00
robocop
507f53d9bd Style and misc 2004-07-22 07:15:10 +00:00
brodsom
728c927550 Hack to fix mingw build (due to a mingw bug). 2004-07-02 10:47:03 +00:00
robocop
949830d0c6 1.- const correctness
2.- style
3.- Try to fix the mess caused by different data types used to represent bifields of SCL_ constants defined in scl.h,
first round. No circular dependencies found through MSVC. Still pending dyn* and grant.epp files.
2004-06-29 04:37:59 +00:00
alexpeshkoff
273d93b517 fixed potential inconsistency, noticed by Claudio 2004-06-21 08:49:46 +00:00
robocop
320fe78b42 Misc changes 2004-06-21 02:48:47 +00:00
fsg
66e4efb565 Fixed an old bug. Thanks to Torsten Martinsen. 2004-06-14 11:20:37 +00:00
brodsom
d2b64735c6 Removing wrong extra ; 2004-06-13 23:47:02 +00:00
brodsom
5692873781 -Rollback 2004-06-10 14:09:17 +00:00
brodsom
b9b39b630e -Rollback 2004-06-09 18:23:27 +00:00
alexpeshkoff
4a00641daf Removed THD_mutex_init from comment 2004-06-09 07:44:10 +00:00
brodsom
3d09805eab -C++ struct declaration style. 2004-06-08 18:41:33 +00:00
alexpeshkoff
1591a54e5e Thread cleanup:
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
robocop
1332d98618 Literal strings should be treated as const char* 2004-06-05 09:37:18 +00:00
brodsom
9df69e0edd Replace with more specific (and clear) cast 2004-05-28 01:43:10 +00:00
brodsom
75a0483d75 -Comment some common.h unused macros
-Replace VA_START macro with va_start function (it was already some places where it is not used)
2004-05-23 23:28:06 +00:00
brodsom
bf56ba0a45 -Inlining of *_thread_data macros.
-Solving another case of variable name = struct name.
2004-05-21 15:22:19 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
skidder
277788de7a NetBSD port from James K. Lowden 2004-05-20 23:05:02 +00:00
brodsom
68cb86b274 - Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
46b5652ab3 Macro cleaning 2004-05-18 22:01:53 +00:00
brodsom
98d9fe6e63 Macro cleaning 2004-05-18 16:32:07 +00:00
brodsom
606dee7a14 Correction 2004-05-18 00:45:46 +00:00
brodsom
b76a60e8b7 Move THREAD_ functions from thd.h to thread_proto.h (and fix unix build) 2004-05-17 22:30:09 +00:00
brodsom
36d6d40469 Macro cleaning 2004-05-17 10:22:34 +00:00
brodsom
aa88f67e75 Macro cleaning 2004-05-17 00:21:46 +00:00
brodsom
cc1c25f7ae Macro cleaning 2004-05-16 01:42:11 +00:00
brodsom
ee34db7e20 Macro cleaning (THREAD_*) 2004-05-15 00:58:46 +00:00
brodsom
c70343dc21 -Avoid shadow warning 2004-05-13 15:18:15 +00:00
brodsom
9e204004d6 -Avoid shadow warning 2004-05-12 21:47:36 +00:00
brodsom
1ffe279896 -Avoid shadow warning 2004-05-12 19:39:17 +00:00
brodsom
62a4b10c22 -Replace define with const
-Remove ifdef cplusplus from internal code
-Remove unused macros
2004-05-06 18:09:24 +00:00
brodsom
80b424e346 -Replace define with const
-Move SYS_ERR, ERRNO, H_ERRNO and INET_ERRNO(ERRNO in inet.cpp) macros to common.h
-Remove unused macros
2004-05-05 21:55:13 +00:00
brodsom
ca34ef15b2 Fix warning 2004-05-04 19:37:25 +00:00
brodsom
fbbc61156f -Fix another incredibly stupid legacy variable naming, variable name = struct name. 2004-05-03 13:35:38 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
ba44794c1e -Remainings of ib_stdio (Pointed by Claudio) 2004-05-01 14:18:28 +00:00
brodsom
0daa189563 Removing ib_stdio.h 2004-04-28 22:36:29 +00:00
robocop
f81e60ed78 More cleanup. Get rid of obsolete files, too. 2004-03-30 08:37:07 +00:00
skidder
f26d84f76b 1. POSIX build libraries export only public API. 2. Unify exports for PROD_BUILD and DEV_BUILD. 3. Support for context memory pools. 4. Memory manager has lower memory overhead exceptionally on 64 bit targets 2004-03-25 23:12:50 +00:00
skidder
8f46d45dc5 Fix crashes/lock-ups with multiple calls of isc_dsql_prepare for a single statement like IBO does 2004-03-25 04:44:43 +00:00
dimitr
65d3e59dc1 Fixed possible AV in SS builds. 2004-03-24 20:12:35 +00:00
alexpeshkoff
1e6c7b18e9 fixed problem with loop in includes 2004-03-22 11:38:23 +00:00
robocop
f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
alexpeshkoff
67f1740fea Various cleanup to make engine compile and work after mentioned earlier changes.
Mainly:
1) MemoryPool* => MemoryPool& in arrays' constructors
2) use Firebird::string to keep strings data
2004-03-14 13:40:14 +00:00
skidder
2851f76d35 Fix warnings 2004-03-14 05:51:54 +00:00
skidder
c64f31b712 Fix some warnings from GCC/Linux build. Some of them were subtle errors 2004-03-12 07:00:52 +00:00
robocop
e6187cecd2 Cleanup
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
skidder
25b969d1b7 Fix MSVC build 2004-03-01 04:57:43 +00:00
skidder
dc7aab8f9c Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed 2004-03-01 03:35:23 +00:00
aafemt
8f92e63e90 Fix after Claudio's cleanup 2004-02-25 11:07:40 +00:00
skidder
a82deb1f83 Make it build after Claudio cleanup 2004-02-24 07:21:00 +00:00
robocop
a36307da5a Remove dllshell.cpp as the only reference is inside
builds\win32\old_makes\ treats it as plain C file, it's a Win16 remnant
and John doesn't need it either for Mac_os_x.
2004-02-24 05:49:55 +00:00
robocop
2fa67d46bc Cleanup
Reduce reinterpret and C casts
Fix isql so it can show all predefined blob types in readable form.
2004-02-24 05:34:44 +00:00
robocop
5c3c8abd9a Big cleanup.
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
stryqx
0a6ab26acb Let semaphore.h see the definition of gds__log for successful build
on FreeBSD.
2004-02-13 10:17:50 +00:00
robocop
663e3b16e7 Cleanup 2004-02-02 11:02:12 +00:00
robocop
2b295a9108 General cleanup. Sorry if I missed some occurrence. 2004-01-28 07:50:41 +00:00
skidder
f3cd158bb0 Get errors passed over the wire correctly on 64-bit platforms 2004-01-27 06:19:02 +00:00
skidder
08eee5ebaa Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static. 2004-01-21 07:18:30 +00:00
eku
14b3de174e Port numbers are limited to 16 bit. 2004-01-13 13:38:36 +00:00
robocop
b441cd9aef Cleanup 2004-01-13 09:52:19 +00:00
skidder
6973b067ea Do more AMD64 fixes. libfbstatic builds and can do some basic stuff now 2004-01-12 06:58:27 +00:00
robocop
fd93837ec3 Cleanup:
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
robocop
16cbc204df Cleanup 2003-12-31 05:36:12 +00:00
dimitr
d7c54f3407 Fixed internal window issue. 2003-12-24 12:23:04 +00:00
robocop
ad0b5c4de3 General cleanup 2003-12-22 10:00:59 +00:00
robocop
d020ea5ca1 ping-pong cleanup: change one place and you have to change several others 2003-12-11 10:33:30 +00:00
dimitr
73c64e9835 Replaced itoa with snprintf. 2003-12-11 08:26:46 +00:00
dimitr
21e87f82e6 Fixed issues with TCP/IP port/service specification. 2003-12-06 15:52:45 +00:00
robocop
b02c629735 Cleanup
Some name changes
Try to fix SINIX-Z problems with send() prototype
2003-12-05 10:35:47 +00:00
robocop
84062732d8 More cleanup 2003-12-03 08:19:24 +00:00
robocop
9fafc348bf const correctness
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
dimitr
06aef49e07 Fixed initialization error. 2003-11-23 09:39:26 +00:00
eku
4a38dfd307 Moved the definition of socklen_t to autoconfig.h. It's used in inet.ccp and
server.cpp.
2003-11-20 08:13:30 +00:00
brodsom
88a2611ed1 -Removing some unneeded headers (WIN_NT) or explaining why are needed 2003-11-16 16:17:38 +00:00
brodsom
27cbcdd73e -Removing some unneeded headers (WIN_NT) or explaining why are needed 2003-11-16 12:57:23 +00:00
brodsom
9b7994233c -Undo gds__vax_integer to isc_vax_integer and gds__event_* to isc_event_* changes 2003-11-16 01:52:44 +00:00
skidder
f2180c2744 Forcedly set SO_KEEPALIVE flag for POSIX CS connections independently of what was given by xinetd/inetd to us 2003-11-15 20:16:29 +00:00
brodsom
c5253ae8a5 -Replace gds__ constants with isc_ contants
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
robocop
f55c6f6f8c const correctness and cleanup 2003-11-10 09:16:38 +00:00
brodsom
7685152889 Correction (Thanks to Claudio) 2003-11-10 02:13:02 +00:00
brodsom
4285bc623c Removing gdsold.h and gds.h 2003-11-08 16:40:17 +00:00
bellardo
409cfd60e0 SWAP_DOUBLE definition implementation for darwin 2003-11-08 07:48:20 +00:00
brodsom
ba8b565b7e fix const cast (error in mingw) 2003-11-07 15:39:11 +00:00
brodsom
146b6f2001 Extern function cleaning 2003-11-07 13:25:53 +00:00
brodsom
cda50f7f41 Extern "C" cleaning correction (detected by Claudio) 2003-11-07 13:20:15 +00:00
robocop
db77ffa605 const correctness, variables in scope, cleanup, etc. 2003-11-07 08:06:35 +00:00
brodsom
89e8f89f86 Extern "C" cleaning 2003-11-06 03:03:36 +00:00
robocop
35396625f5 const correctness
function signatures
variables in local scope
BOOLEAN -> bool
TEXT[32] as SqlIdentifier for DYN
Stop random garbage in firebird.msg's bytes 8 to 11
some cleanup
2003-11-05 09:02:33 +00:00
brodsom
ff070a16a8 Replacing assert with fb_assert 2003-11-03 23:59:24 +00:00
skidder
7b99b8a57b Basic INTL cleanup.
- Rework (mostly undo) John's changes
- Some function type safety
- Make INTL OO layer very thin (this should slightly improve performance)
2003-11-03 17:14:45 +00:00
brodsom
0ae432cf98 Style 2003-11-03 00:37:11 +00:00
robocop
cda707bd36 const correctness and other related changes 2003-11-01 10:26:43 +00:00
eku
da0d0f068f Cleanup usage of gettimeofday. 2003-10-31 11:33:45 +00:00
robocop
9ead7a37b4 const correctness
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
robocop
d43bb857e3 Style; bool 2003-10-20 10:28:48 +00:00
robocop
b7a0dfa834 Style; bool, vars in scope 2003-10-20 10:28:07 +00:00
robocop
8182b6cba2 const correctness and other tasks 2003-10-16 08:51:06 +00:00
skidder
4e8605294e Forward port Sparc fixes 2003-10-10 23:56:57 +00:00
robocop
480c1ee968 const correctness 2003-10-08 08:42:48 +00:00
brodsom
bac69c42fc extern cleaning
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:20:50 +00:00
robocop
c931a674c2 Cleanup.
Hopefully harmless
It should fix the issue introduced with constness in gds__interprete for current applications.
2003-09-29 12:43:14 +00:00
robocop
484c6ec372 Cleanup, const correctness, variables in scope, etc.
Having done my best to merge everyone else's changes, I hope the tree can be build with whatever other tools != MSVC6.
2003-09-25 11:49:12 +00:00
dimitr
835c254336 Don't change screen cursor during CS attach. 2003-09-24 14:53:25 +00:00
skidder
4f375d534d Update Linux CS build for my REMOTE changes 2003-09-23 22:34:14 +00:00
brodsom
9d5721473a Removing SHLIB_DEFS 2003-09-22 17:56:35 +00:00
skidder
30d8ca94f2 Fix SuperServer 1-minute lock-up under contention bug.
With previous logic all spare threads were notified and performed
expensive loop on each request arrival. New logic wakes up only
one thread per request. (the same fix was performed in 2.0 SS lock manager
to avoid waking up all blocked threads on each lock request resolution).
As an (unexpected) result of this changes SS performance significantly
improved. Some artificial tests show timing improvements by
factor between 2 and 3.
2003-09-16 20:59:45 +00:00
brodsom
d6a502709b Fix unused function warning 2003-09-15 19:27:24 +00:00
brodsom
c527dea618 Warning fixes 2003-09-14 00:26:30 +00:00
brodsom
fa09e72d4e Corrections (Thanks to Claudio) 2003-09-13 09:15:06 +00:00
brodsom
65d792cda0 -BOOLEAN cleaning 2003-09-11 18:59:34 +00:00
dimitr
8de7978d90 Cleanup 2003-09-10 12:02:25 +00:00
skidder
77b17de987 NBACKUP-related changes and some clean-up 2003-09-08 20:23:46 +00:00
dimitr
efe2cbce0d Added the current XNET implementation.
Let's hope it works not only for me <g>
2003-09-08 14:14:23 +00:00
brodsom
382cd1c45e Code cleaning 2003-09-08 01:45:09 +00:00
brodsom
8624a7c209 -Use NULL instead 0 for null pointers
-Remove unneeded casts
2003-09-01 07:58:04 +00:00
brodsom
62a397922c -Remove GDS_VAL and GDS_REF 2003-08-30 01:43:08 +00:00
brodsom
70c6a819ee -Remove BOOLEAN, TRUE and FALSE 2003-08-29 00:37:25 +00:00
brodsom
255b32204e -Remove BOOLEAN_DEFINED macro
-Remove MSG_DEFINED macro
2003-08-28 22:52:19 +00:00
brodsom
602c201989 -Remove NULL_PTR
-Remove unneeded NULL casts
-Remove (void) function return cast
2003-08-28 13:07:29 +00:00
skidder
6f2c2095ae Fix kernel memory leak 2003-08-21 22:30:20 +00:00
aafemt
9dbf56310a sdl is UCHAR again 2003-08-15 10:23:46 +00:00
brodsom
5a52e128ce -Fix signed/unsigned comparison warning 2003-08-10 11:08:56 +00:00
brodsom
f29dadbdb6 -Fix never defined warning 2003-08-10 01:22:12 +00:00
brodsom
f54342035c -Fix not defined warning
-Remove unneeded casts
2003-08-09 22:34:19 +00:00
aafemt
cd128d6ce8 Rollback public API changes by Mike Nordell 2003-08-07 10:37:34 +00:00
aafemt
b672867147 sdl is a plain char again. Some cleanup around it 2003-07-24 10:21:42 +00:00
brodsom
499337fda5 Split utilities dir 2003-07-15 02:43:36 +00:00
brodsom
5829455596 Move win32 specific sources in remote to remote/os/win32 2003-07-14 23:29:45 +00:00
brodsom
8feff51688 Remove depends (unused and unmaintained) 2003-07-08 23:38:30 +00:00
dimitr
f33923d832 no message 2003-07-06 13:35:08 +00:00
dimitr
6b80680358 Preload the client library to fix the win98 UDF issues. 2003-07-06 11:38:30 +00:00
dimitr
8a9fd67841 Get rid of the old config stuff completely. 2003-07-04 15:17:49 +00:00
dimitr
f0d59e7eb4 Temporary disallowed config management via the property sheet. 2003-07-04 12:15:33 +00:00
brodsom
3e8835251f Changes only inside #ifdef DEBUG.
Needed to be able to build with -DDEBUG on gcc.(there are also some format corrections)
2003-06-30 11:26:38 +00:00
dimitr
318d501392 Fixed manual TCP port assignment. 2003-06-25 07:39:04 +00:00
dimitr
e72d7cc92e Re-enable default asymmetric protocol. 2003-06-08 18:12:13 +00:00
dimitr
735eff821c Version information cleanup. 2003-06-08 13:13:25 +00:00
alexpeshkoff
b7675edc11 fixing linux SS - removed variable free_map_debug,
as not present in any other part of firebird code
2003-06-06 09:16:54 +00:00
dimitr
b8aa5e8448 Add remote client to the embedded server again. 2003-06-05 19:40:25 +00:00
aafemt
6233daf531 Win32 SS doesn't ignore protocol command-line switches anymore. CS doesn't support IPC 2003-05-13 10:13:34 +00:00
skidder
7904fcd7ee Cleanup 2003-05-09 16:05:24 +00:00
aafemt
0809efc4d6 Missed parameter -l -- accept win32 IPC local connections 2003-05-08 10:30:43 +00:00
skidder
bb00bf2478 Mark probable problem for non-Intel ports 2003-05-07 19:14:40 +00:00
dimitr
345ab4ee76 Const correctness suggested by Claudio. 2003-05-07 07:08:07 +00:00
dimitr
469b97a03c Disabled XNET in the server window. 2003-05-05 12:11:11 +00:00
dimitr
12f06180d5 If a port cannot be reconnected, exit child process instead of crashing with SEGV. 2003-05-05 12:09:40 +00:00
dimitr
eead4406c1 Small fixes for WNET and XNET:
1. Wake up event thread on disconnect.
2. Shutdown broken port properly.
2003-05-05 11:44:02 +00:00
dimitr
9bb7988a69 Fixed possible client crashes on disconnect (when events are registered). 2003-05-05 11:14:06 +00:00
dimitr
d2c241aa87 Synchronized command-line arguments with srvr_w32.cpp. 2003-05-05 10:39:28 +00:00
dimitr
9e168cacd6 Removed XNET temporary stubs from ISC and REMOTE.
It will be available as native local protocol in v1.6.
2003-05-05 09:19:35 +00:00
dimitr
8ee32bb1cb Rolled back asymmetric protocol due to found bugs and lack of time to fix them in v1.5. 2003-05-02 17:17:09 +00:00
alexpeshkoff
581b549844 Make SS create memory log in debug mode on shutdown 2003-04-29 15:08:21 +00:00
aafemt
e5146fd644 Introduce of ISC_STATUS_ARRAY 2003-04-16 10:18:51 +00:00
aafemt
931da98b2f STATUS -> ISC_STATUS 2003-04-10 10:31:28 +00:00
dimitr
ae56ed3860 1. Ask for only asymmetric protocols from the client side.
2. Cleanup.
2003-04-09 13:20:56 +00:00