alexpeshkoff
2cf062e317
Front-ported fix for CORE-3297: nbackup exits without info when firebird.conf is missing. Make all utilities run without firebird.conf - only server requires it's presence.
2011-01-19 17:24:49 +00:00
alexpeshkoff
ddaddccb97
Fixed bug, found by Adriano - destructor of statically allocated factory should better never be called
2011-01-17 12:17:24 +00:00
asfernandes
233093cee4
Misc
2011-01-16 02:16:15 +00:00
robocop
24b28d8831
Misc.
2011-01-15 09:30:24 +00:00
robocop
60edaaa8b3
Misc.
2011-01-15 09:29:04 +00:00
robocop
b4a546d77f
Misc and small fix.
2011-01-15 09:27:15 +00:00
alexpeshkoff
d6fcde387b
New plugin manager. Use it for all types of plugins.
2011-01-14 17:31:40 +00:00
asfernandes
095c9b80d7
Misc
2010-12-29 00:49:21 +00:00
asfernandes
c9ec26c0c3
Feature CORE-726 - Boolean data type
2010-12-18 02:17:06 +00:00
hvlad
1e35bc97c8
Port forward fix for bug CORE-3119 : 100% CPU USAGE with Unilimited Loop & Index corrupted
2010-12-12 20:19:47 +00:00
asfernandes
eb257542c1
Misc
2010-12-04 17:19:48 +00:00
hvlad
40c7edec78
Fixed bug CORE-3266 : Race condition between async service detach request and running user trace service
2010-11-29 15:06:42 +00:00
alexpeshkoff
9d8720a198
Remove restriction on username, as it was discussed in devel
2010-11-23 12:56:25 +00:00
alexpeshkoff
01ad4134c7
Improvement CORE-3248: Set unused bytes of varchar values in message buffer to 0
2010-11-19 15:11:09 +00:00
dimitr
818663e826
Basic network support for the fb_ping() API call. Untested yet.
2010-10-31 13:46:54 +00:00
dimitr
c80ac097f3
Fixed CORE-3202: execute_immediate API call family may crash the remote server.
2010-10-28 18:16:21 +00:00
alexpeshkoff
0ab6c4abf7
Avoid throwing C++ exceptions from authentication plugins
2010-10-28 08:02:42 +00:00
asfernandes
5c7e5ce634
Misc
2010-10-22 01:24:31 +00:00
hvlad
f2f89355bd
Don't use obsolete gds cleanup in XNET. It also avoids AV in server at shutdown
2010-10-21 14:25:26 +00:00
hvlad
d5833b72f0
Windows-specific hack to register security plugins seems obsolete with new build
2010-10-21 11:45:37 +00:00
hvlad
df8a6a2ff7
Corrections for new build system. Work in progress...
2010-10-20 22:00:34 +00:00
hvlad
648a609775
Follow Alex changes and remove ISC_STATUS* from various functions
2010-10-18 17:25:33 +00:00
hvlad
f223086fdd
Corrections for new build system. Work in progress...
2010-10-18 17:23:36 +00:00
alexpeshkoff
e05c1a825f
Moved some more .h-files to common from jrd as Vlad suggested
2010-10-13 10:39:52 +00:00
asfernandes
91384eb587
Misc
2010-10-12 17:40:27 +00:00
alexpeshkoff
55d5bdf465
Missed in previous commit files
2010-10-12 08:15:48 +00:00
alexpeshkoff
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
asfernandes
2cbc4e3675
Misc
2010-07-24 02:43:28 +00:00
hvlad
2de56fdeef
Forgotten changes
2010-07-23 14:39:21 +00:00
hvlad
ae01bde43d
Make trusted auth works
2010-07-23 14:31:04 +00:00
hvlad
6e2db049ea
Make Windows build work (MSVC8 only) after Alex changes.
...
Some corrections is still required.
2010-07-23 14:06:29 +00:00
alexpeshkoff
d24cd9cbd7
Implemented self-registering plugins format (same plugin can be easily linked statically
...
or as dynamic library, depending upon platform requirements). Self-registering plugins
need not export any functions, instead they call fb_register_plugin() on startup.
Reworked all user management to use self-registering plugins.
Removed system table RDB$USERS. PLG$USERS is not created automatically by plugin, but
will be later (work in progress).
2010-07-23 12:04:18 +00:00
alexpeshkoff
6cbefa1f46
Introduced class SharedMemory - base class for everything, using IPC. Related to CORE-3035.
2010-06-25 11:55:11 +00:00
hvlad
3271bbae3a
Disable hard limit on number of worker threads. Something more smart should be implemented instead.
2010-06-23 13:36:52 +00:00
dimitr
01c57892e8
Fixed a lock-up when connecting locally to the missing database file. The issue is old, but it could never fire prior to v3.0.
2010-06-17 14:27:01 +00:00
asfernandes
e37d097240
Misc
2010-05-22 02:00:45 +00:00
alexpeshkoff
74a4aaacb6
Moved not auth-specific part of interface declaration to separate file
2010-05-20 15:02:31 +00:00
alexpeshkoff
ea28dc5773
Frontported - raise NPROC limit on unix to avoid errors when starting many threads
2010-05-20 12:03:30 +00:00
hvlad
cd5fcdd279
Fixed bug CORE-2995 : Same error in status vector reported twice
2010-05-07 13:02:21 +00:00
alexpeshkoff
8b4d53703d
Cleaned isc_dpb_sys_user_name and related things
2010-04-21 12:55:43 +00:00
alexpeshkoff
4ce63669c1
finished fb_inet_server cleanup
2010-04-16 13:33:22 +00:00
asfernandes
b36b9764ce
Misc
2010-04-16 02:31:36 +00:00
dimitr
a24996acf8
Adjusted the Alex changes for Windows.
2010-04-15 15:45:14 +00:00
alexpeshkoff
88b8a40a04
1. Cleaned up most of SUPERSERVER usage.
...
SUPERSERVER has 4 different meanings in our code:
- this is milticlient server (replaced with Config::getMultiClientServer())
- use shared data cache (replaced with Config::getSharedCache())
- use shared metadata cache (replaced with macro SHARED_METADATA_CACHE)
- database are NOT shared between processes (replaced with getSharedDatabase())
2. Use fb_smp_server as both superclassic and classic binary on posix
(xinetd autodecection is done).
3. Small posix build cleanup.
2010-04-15 14:40:27 +00:00
dimitr
998e0b9523
Cleanup SUPERCLIENT.
2010-04-01 04:45:05 +00:00
asfernandes
68e67d1453
Misc
2010-03-30 00:25:52 +00:00
alexpeshkoff
deb5c2317b
Fixed CORE-2948: Segfault when server is exiting
2010-03-29 15:24:03 +00:00
asfernandes
11a3746970
Misc
2010-03-25 02:10:57 +00:00
alexpeshkoff
1a75dcc12c
Cleanup SUPERCLIENT - and also more generic control for overwritten const cstring
2010-03-24 12:13:07 +00:00
alexpeshkoff
e81e0db47b
Cleanup SUPERCLIENT/EMBEDDED - avoid different remote builds
2010-03-24 07:50:10 +00:00
dimitr
9aa33a6b9e
Misc.
2010-03-22 13:29:41 +00:00
asfernandes
2ed85aef29
Misc
2010-03-21 23:01:30 +00:00
dimitr
ee01b7499b
Fixed the client side crash when error is returned from the server during attaching.
2010-03-21 13:15:16 +00:00
dimitr
1b732a3579
Reworked the remote protocol analyzing logic.
...
In particular, it resolves the possible problems with the local access to databases on network shares.
Also, it removes any dependencies from EMBEDDED to simplify Alex's cleanup.
Finally, it adds the initial implementation of the Vlad's suggestion (for testing purposes).
2010-03-21 13:13:55 +00:00
dimitr
eb97ea665c
Cleanup.
2010-03-21 13:01:34 +00:00
dimitr
63bedffa71
Refactored the sorter into a proper class.
...
Removed some dead code and unused files.
2010-03-16 11:19:29 +00:00
asfernandes
d3ad05b7eb
Misc
2010-03-14 15:33:06 +00:00
alexpeshkoff
b0a411f8bf
Frontported fix for CORE-2725: Server crashes when sending wrong BLR for parameters in op_execute
2010-03-14 13:58:11 +00:00
asfernandes
01f6e290fd
Misc
2010-02-15 00:43:04 +00:00
hvlad
d19395459f
Fixed bug CORE-2864 : Listener process of Classic Server leak handles.
2010-02-14 12:18:07 +00:00
hvlad
317e2b5105
Fixed bug CORE-2851 : problem with fb_cancel_operation
2010-02-08 13:36:56 +00:00
robocop
7ffc4d001f
Misc.
2010-02-08 07:57:33 +00:00
alexpeshkoff
08a8ee9f42
Make InitInstance release objects, created by it
2010-02-07 15:13:28 +00:00
robocop
280cbb3ab2
Totally misc.
2010-02-06 04:26:14 +00:00
asfernandes
281d382185
Misc
2010-02-06 01:32:53 +00:00
alexpeshkoff
513734bb8c
Frontported fix for CORE-2836: fb_cancel_operation() incorrectly modifies rdb_status_vector
2010-02-04 15:36:03 +00:00
dimitr
73ec84cace
Restored the legacy explicit checks for NULL objects instead of hiding that check inside checkHandle() and isHandleKnown().
...
This improves the readability and also fixes the [possible in the future] issues with multiple inheritence.
2010-02-02 14:22:46 +00:00
dimitr
fbbc7a2432
Restored the legacy explicit checks for NULL objects instead of hiding that check inside checkHandle() and isHandleKnown().
...
This improves the readability and also fixes the [possible in the future] issues with multiple inheritence.
2010-02-02 14:14:00 +00:00
alexpeshkoff
fb1a042859
Better fix for trusted authentication problem
2010-01-29 17:53:07 +00:00
hvlad
3c20fd3e07
Make trusted auth works again.
...
To be reviewed by Alex.
2010-01-29 13:08:53 +00:00
asfernandes
a454b705d0
Misc
2010-01-28 15:01:57 +00:00
alexpeshkoff
b0321f78ff
Better approach to const correctnes of auth interfaces - thanks to Claudio
2010-01-27 16:51:26 +00:00
asfernandes
5fb0432672
Misc
2010-01-24 16:52:24 +00:00
asfernandes
eb9eef9d77
Misc
2010-01-24 15:18:43 +00:00
dimitr
7f0b8af499
Fixed the compilation.
2010-01-23 10:18:55 +00:00
alexpeshkoff
55e717f810
Moved authentication code from engine to remote listener.
...
Get ready for authentication plugins.
2010-01-22 14:55:11 +00:00
robocop
dc978c61e9
Style.
2010-01-02 02:02:17 +00:00
alexpeshkoff
443f261abf
Introduce isc_dpb_version2 - format is WideTagged.
2009-12-30 15:24:16 +00:00
alexpeshkoff
e338fb79d1
frontported change from 2.5 - issue with too many records in log file
2009-12-04 16:00:12 +00:00
hvlad
140604e4d6
Fixed bug CORE-2670 : FB 2.5 freezes during data pump operations
2009-12-04 11:46:43 +00:00
dimitr
8914324bf1
Fixed CORE-2769: Make XNET_CONNECT_TIMEOUT in xnet.h user configurable.
2009-11-28 12:42:31 +00:00
robocop
1386adcf90
Style.
2009-11-16 08:06:31 +00:00
asfernandes
cefe295ad9
Misc
2009-11-14 01:20:33 +00:00
alexpeshkoff
8bfa0a37a2
Feature CORE-1952: deprecate Implementation IDs, easing new ports; ODS change - BOOT build needed
2009-11-13 18:29:06 +00:00
asfernandes
0b2a994c27
Misc
2009-11-13 01:36:09 +00:00
dimitr
25957ce12a
Fixed CORE-2742: Server may stop responding to a particular client attachment under some conditions.
...
Credits belong to Vlad ;-)
2009-11-09 09:41:05 +00:00
robocop
55d60892ca
Warnings.
2009-11-05 08:29:33 +00:00
asfernandes
d59001341c
Misc
2009-10-31 17:31:48 +00:00
dimitr
6dd8a5c2f3
Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
2009-10-31 05:20:30 +00:00
robocop
6b997b901f
Misc.
2009-10-30 10:59:52 +00:00
asfernandes
ed0e0daeb3
- External Engines implementation.
...
- Plugins API.
- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.
- Fixed CORE-2699 - Common table expression context could be used with parameters.
- Introduce ODS 12.0.
- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
hvlad
163b6a59c9
Better fix for bug CORE-2656 : Error reading data from the connection. On disconnect.
2009-10-12 14:38:47 +00:00
hvlad
d2c89f53f3
Fixed bug CORE-2656 : Error reading data from the connection. On disconnect
...
Thanks to Oleg Matveyev for test case and assistance
2009-10-11 19:54:04 +00:00
hvlad
653a3f2e02
Make better XNET's error messages in firebird.log
2009-10-01 09:12:49 +00:00
verbguy
56f291e05f
HP-UX changes - 64-bit atomic counters, support for HP-UX 11 v2, and small tweak of build options
2009-09-29 19:13:51 +00:00
alexpeshkoff
60a115efc2
Fixed CORE-2601: fine tuning of the installation directories does not work in configure
2009-09-11 10:49:46 +00:00
asfernandes
519a3b0aa7
A few necessary "volatile" usage
2009-09-10 15:30:03 +00:00
robocop
43962281d4
Misc and isolate the win9x code even more.
2009-09-02 04:23:02 +00:00
alexpeshkoff
d7a9b25e74
Store strings, received from server, in circular buffer
2009-09-01 13:56:16 +00:00
alexpeshkoff
9629eafccd
Use per-thread circular strings buffers instead common and per-attachment combination
2009-09-01 09:20:24 +00:00
skidder
aca5a83a46
Fixed CORE-2609: Update support for Windows 98/ME and NT4.0
2009-08-30 19:00:46 +00:00
asfernandes
398975b940
Misc
2009-08-20 01:32:24 +00:00
robocop
6a521a72b2
Comment obsolete architectures.
2009-08-18 12:56:00 +00:00
robocop
f84198ee98
Comment or delete unused things.
2009-08-18 12:55:38 +00:00
dimitr
70b28297c1
Fixed the POSIX build.
2009-08-18 07:35:29 +00:00
robocop
ff405cfa85
Comments and misc.
2009-08-15 11:47:48 +00:00
robocop
ee40c31cb7
Comments.
2009-08-15 11:46:48 +00:00
robocop
8120fcd23e
Style.
2009-08-14 10:05:00 +00:00
robocop
959203c1fe
Comments.
2009-08-14 10:03:19 +00:00
robocop
4def041e27
Comments.
2009-08-14 09:44:49 +00:00
asfernandes
ae6c7e7352
Misc
2009-08-14 01:58:22 +00:00
dimitr
6f887cb6dc
More information about unexpected failures.
2009-08-13 10:07:53 +00:00
dimitr
5b5a19fa70
No need to check the handle here, as the retrieval from the array will handle it automagically.
2009-08-13 09:56:38 +00:00
dimitr
b1107730c0
1) protocol.cpp is not expected to throw. Processing of port_objects should be wrapped by try-catch blocks.
...
2) Minor refactoring.
2009-08-13 09:55:33 +00:00
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
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