dimitr
9a34d50e99
1) Let's process unexpected port disconnections gracefully.
...
2) Don't allow any untrapped exceptions to leave loopThread.
2009-08-13 09:52:56 +00:00
dimitr
e50d813c0e
Let's process returned errors correctly.
2009-08-13 08:18:46 +00:00
asfernandes
2cb136d9b8
Misc
2009-08-05 02:12:46 +00:00
dimitr
54814e9393
Misc.
2009-08-04 11:36:17 +00:00
dimitr
96e39adc2e
Cleanup the code not relevant anymore.
2009-08-04 11:35:39 +00:00
robocop
ab578df954
Fix the Win32 build by brute force for VC2008 (other compilers may complain).
2009-08-02 14:50:58 +00:00
dimitr
e24dd620a0
Little battle against warnings.
2009-08-02 10:47:45 +00:00
dimitr
632ec92723
Little battle against warnings.
2009-08-02 10:36:21 +00:00
asfernandes
8c265e5a45
Misc
2009-08-01 18:41:46 +00:00
alexpeshkoff
5b6738dcb4
Patch from Bill Oliver and some more consts
2009-07-31 09:17:30 +00:00
alexpeshkoff
a55c2a35a0
Fixed posix build
2009-07-31 09:05:25 +00:00
dimitr
a0941a6b34
Someone attempted to turn on a keepalive option for the event channel, but used a main connection socket handle instead of the event one ;-)
2009-07-31 08:55:10 +00:00
dimitr
3038f8b5db
Use a proper handle type for TCP sockets. Don't share that handle with named pipes. This allows to eliminate many unnecessary casts.
2009-07-31 08:46:35 +00:00
hvlad
3e4b0677ce
Fixed regression in Beta2 : can't connect using XNET
2009-07-29 08:59:28 +00:00
asfernandes
6377356940
Misc
2009-07-23 00:56:28 +00:00
dimitr
d6c79a4203
Fixed two issues for the case of non-authorized op_connect_request:
...
1) Missing error reporting which makes the client to stall forever
2) CORE-2563: Possible DoS attack using the malformed packet sent into the connection port
2009-07-20 14:05:39 +00:00
asfernandes
68ebf172f6
Fixed CORE-2561 - Incorrect database name transliteration when connecting using WNET or XNET
2009-07-19 17:33:52 +00:00
robocop
cfb9403481
Warnings.
2009-07-17 09:06:03 +00:00
asfernandes
5063bafc36
Misc
2009-07-15 03:13:16 +00:00
asfernandes
b2c8c1f1e6
Fixed the problem with trusted authentication
2009-07-13 15:26:37 +00:00
dimitr
816f2971da
Deleted the unnecessary files.
2009-07-13 15:13:23 +00:00
dimitr
136d064565
1) Complete the Alex's changes for CORE-2526 (Windows part).
...
2) Cleanup the license, help and settings parts of the server properties window (they're unused for a long time already).
3) Misc changes.
2009-07-13 15:09:58 +00:00
asfernandes
e26c3083f8
Improvement CORE-2551 - Interpret DPB items as now the database name parameter is interpreted and change MON$ filenames fields from NONE to UNICODE_FSS.
2009-07-11 19:58:28 +00:00
asfernandes
20c91dcef7
Misc
2009-07-11 03:01:18 +00:00
asfernandes
7d0074310c
Initialize xcc struct.
...
After its creation, things may go wrong and then cleanup_comm access not initialized members.
2009-07-09 17:30:29 +00:00
alexpeshkoff
fe4aec8a12
Fixed CORE-2550: Bus error when working with DB_KEY on bigendian machines. Introduced dtype_dbkey inside engine.
2009-07-09 14:04:42 +00:00
robocop
33f2a7881d
Leave xdr and friends in peace for now.
2009-07-07 08:50:26 +00:00
robocop
e297859792
Undo some particular cases of signed/unsigned conversions.
2009-07-07 07:21:34 +00:00
robocop
336098a038
Ged rid of a lot of reinterpret_cast cases.
2009-07-05 10:12:06 +00:00
asfernandes
8a94ecf6bc
Misc
2009-06-29 02:06:00 +00:00
robocop
67c4d03965
Style.
2009-06-28 11:59:30 +00:00
robocop
2ca526b779
Style.
2009-06-28 10:26:25 +00:00
robocop
ff4b546efd
Style.
2009-06-27 12:07:51 +00:00
robocop
34e347fddd
Cleanup.
2009-06-27 08:28:07 +00:00
dimitr
14e9ed63f1
Fixed CORE-2462: 2.5 beta 1 has huge, fast-growing log files.
...
Also bring some uniformity to the code among different protocols.
2009-06-27 08:00:17 +00:00
robocop
f10e1b72eb
Style.
2009-06-27 06:23:36 +00:00
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