alexpeshkoff
4b20155e75
Fixed CORE-2262: Client connection is abruptly terminated
2008-12-30 15:23:06 +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
robocop
d39690fbff
Style (and let lines grow up to 100 columns).
2008-12-04 09:29:16 +00:00
robocop
9f52942ab0
Style.
2008-12-02 07:09:49 +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
asfernandes
db82e7cd6b
Misc
2008-11-06 00:23:21 +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
dimitr
4c05d2d8dd
Fixed CORE-2137: Database restore may crash the server when DummyPacketInterval is set.
2008-10-22 15:43:16 +00:00
alexpeshkoff
065c4b0430
Disconnect all ports after shutdown of working threads
2008-10-13 16:04:15 +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
857129d3f7
Initialize local variable
2008-10-04 17:46:31 +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
dimitr
8f05c35f88
Misc.
2008-07-29 10:36:36 +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
dimitr
bff84e9e7a
Cleanup.
2008-06-06 15:55:36 +00:00
alexpeshkoff
ff7cfc717e
Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter
2008-05-22 08:59:45 +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
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
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
alexpeshkoff
0ba2ab7ea7
Make fb_cancel_operation() public API call. Related cleanup.
2008-04-29 09:55:41 +00:00
hvlad
3c353209d2
Implement CORE-818 : Server needs to detect disconnects.
...
For INET only.
2008-04-23 09:38:15 +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
asfernandes
d75951e8e5
Misc
2008-04-18 01:37:44 +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
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
robocop
5294fda616
Misc.
2008-04-15 09:31:35 +00:00
alexpeshkoff
b0cc1c0481
Implemented remote cancel operation call. Switched to PROTOCOL_VERSION12.
2008-04-14 09:45:16 +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
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
27b24cccf3
The boss prefers clean() instead of the sui generis unset().
2008-03-30 09:49:22 +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
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
9318660f3a
Finish cleanup in remote started by Alex (remove ALLR etc)
2008-03-25 18:58:31 +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
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
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
asfernandes
4762e049ee
Misc
2008-03-14 02:50:40 +00:00