Commit Graph

46 Commits

Author SHA1 Message Date
Michael Davidsaver
ba3b777978 missed one
cf 2f0bb7d448
2017-11-16 11:18:13 -06:00
Michael Davidsaver
2f0bb7d448 "Not-a-first segmented message" is a critical error
Let's try to scare users into reporting it more promptly.
2017-11-15 19:38:26 -06:00
Michael Davidsaver
576b241faa consolidate TransportClient and ChannelImpl as ClientChannelImpl 2017-11-06 15:51:43 -06:00
Michael Davidsaver
073c77b1ef consolidate ServerChannel and ServerChannelImpl
"interface" with a single implementation.
combine and de-virtualize.
2017-11-06 15:14:41 -06:00
Michael Davidsaver
8d5c27143b pvasr list client channels 2017-11-05 17:11:28 -06:00
Michael Davidsaver
5e900b1f11 remove super abstract authNZInitialize(void*)
with separate client and server calls.

Still dynamic_cast ugliness as Transport and Codec
hierarchies don't have a common root.
2017-11-05 16:41:59 -06:00
Michael Davidsaver
47332fdf90 server status reporting via iocsh 2017-11-05 15:59:01 -06:00
Michael Davidsaver
98df225583 insturment with reftrack 2017-08-30 11:17:03 -05:00
Michael Davidsaver
ad5d23f4c8 minor vx fix 2017-07-17 17:38:51 +02:00
Michael Davidsaver
0c02625aa5 servercontext wait for transport worker threads to finish
doing this through Transport::close()
causes deadlock in client code due to locking.
So make this an extra step.
2017-06-26 14:16:41 +02:00
Michael Davidsaver
3dca3dc38f ServerContext clear timer queue 2017-06-22 13:51:38 +02:00
Michael Davidsaver
11cc395baf more BlockingTCPTransportCodec::close() wait for threads
can't wait here as locks are held
2017-06-02 12:30:40 +02:00
Michael Davidsaver
3ad27665e8 BlockingTCPTransportCodec::close() wait for threads 2017-05-31 15:47:46 +02:00
Michael Davidsaver
3283bed413 drop PVA_ALIGNMENT constant
This will forevermore be 1, so no
reason to incur complexity of testing this.

size % PVA_ALIGNMENT -> 0
alignBuffer(PVA_ALIGNMENT) -> no-op
alignedValue(val, PVA_ALIGNMENT) -> val
2017-05-24 17:20:17 -04:00
Michael Davidsaver
87dca19708 codec: avoid indirection when accessing buffers
avoid some indirection to make this code easier to follow.
move buffer lower limit to base class.
2017-05-24 17:20:17 -04:00
Michael Davidsaver
b05e7699b5 remove no-op lock/unlock from Lock sub-classes 2017-05-24 17:20:17 -04:00
Michael Davidsaver
2cc1be2dee codec.h: minor 2017-05-24 17:20:17 -04:00
Michael Davidsaver
ab4f0b7e3a collapse BlockingSocketAbstractCodec -> BlockingTCPTransportCodec 2017-05-24 17:20:17 -04:00
Michael Davidsaver
e47124aa30 collapse BlockingAbstractCodec into BlockingSocketAbstractCodec 2017-05-24 17:20:17 -04:00
Andrew Johnson
9a8644033d Prevent redefinition of NOMINMAX
While this protection is not strictly necessary here, if someone
does a cut-and-paste into a header file it should be included.
2016-04-06 15:22:11 -05:00
Andrew Johnson
e28fd6129e Remove need to undef epicsExportSharedSymbols
This approach works OK, but makes it much harder to find files
that have mistakes in them since they can cause other functions
to get the wrong import/export setting.
2016-04-06 10:59:23 -05:00
Matej Sekoranja
5279d247ca general indent beautification 2016-03-10 23:36:16 +01:00
Matej Sekoranja
9b6fdaaaff rtems: reference to 'Thread' is ambiguous 2016-03-03 00:29:54 +01:00
Matej Sekoranja
125822d18f one instance of responseHandler per context 2015-12-17 09:12:33 +01:00
Michael Davidsaver
b9dd9e8e6c getRemoteName()
Cache the TCP peer address as a string and pass it to createChannel().
2015-12-14 17:04:57 -05:00
Michael Davidsaver
4a1bfff40f Remove clearSendQueue
Use BreakTransport exception instead
2015-12-14 16:59:55 -05:00
Michael Davidsaver
730d30fe54 AbstractCodec use fair_queue 2015-12-14 16:59:55 -05:00
Michael Davidsaver
6254525cba use epicsThread and Thread::Config
Catches errant c++ exceptions and is joinable
2015-12-14 16:59:47 -05:00
Michael Davidsaver
2e64b1b785 Message for unhandled exceptions in UDP message processing 2015-11-23 16:41:31 -05:00
Michael Davidsaver
c59715f687 cleanup commented code blocks 2015-11-23 16:41:31 -05:00
Matej Sekoranja
7eb0087d64 fixed bad tx performance 2015-02-04 20:08:25 +01:00
Matej Sekoranja
d3fb30d55d removed annoying warning when client disconnects while server is processing a send message 2015-01-07 13:48:44 +01:00
Matej Sekoranja
228d7fe279 queue.take possible race, send thread does not wait for read anymore 2015-01-07 12:58:28 +01:00
Matej Sekoranja
9ba3d94649 connection tear-down from sender thread 2014-12-09 14:36:55 +01:00
Matej Sekoranja
bccddcc418 cyclic ref (memory leak) fixed when request are left on sendQueue 2014-10-16 11:11:24 +02:00
Matej Sekoranja
0b0bf32c19 security plugin handling 2014-09-11 09:41:20 +02:00
Matej Sekoranja
15dd1497f2 set endianess control message server flag 2014-09-09 22:35:37 +02:00
Matej Sekoranja
38f1ce1c30 stupid vxWorks m_data macro 2014-09-09 15:43:14 +02:00
Matej Sekoranja
8a2abf09b2 access security 2014-09-09 14:28:43 +02:00
Matej Sekoranja
b14333f720 TCP acceptor and validation fixed, logs and dot consistency 2014-09-04 20:44:12 +02:00
Matej Sekoranja
e5d2f457a2 client now uses connection timeout param 2014-08-06 10:04:25 +02:00
Matej Sekoranja
fbe2ffa3cb testServer: added alwaysSendAll for ChannelGet, velocious for Monitor; added testMonitorPerformance util 2014-07-30 11:14:52 +02:00
Matej Sekoranja
c01b928836 server/client flag, _lastSegmentedMessageType != 0 comparison fix 2014-07-22 00:35:29 +02:00
Matej Sekoranja
99df13dc72 completed merge 2014-06-10 00:09:08 +02:00
Andrew Johnson
266c883131 Merged changes from default branch 2014-04-18 16:58:06 -05:00
Andrew Johnson
a886984258 Rename pvAccessApp to src, adjust Makefiles 2014-03-28 11:53:02 -05:00