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