Timo Wischer
9d094d9a35
JackRequest: Try to write request in one shot
With this adaption the probability that a message will be written
completely is higher.
On high load there are 647x/sec EAGAIN failures without this patch
and 570x/sec failures with this patch.
(The "JackClientSocket::Write time out" log messages were counted when
simulating continuously Xruns.)
In case of EAGAIN failures the message will now completely ignored.
Therefore it the socket stream will only contain complete messages
and no partly written messages. Such partly written messages would be
interpreted wrongly by the reader and the reader would detect the start
of the next message in the middle of the message. This could result in
"Unknown request" error logs but could also end up with assertions due
to request attributes which are out of range.
When using POST_PACKED_STRUCTURE JackRequest structures would be
aligned to 64b on aarch64 due to packing is disabled on aarch64 in
systemdeps, this causes issues with decoding some JackRequests. To
overcome this issue by defining POST_PACKED_STRUCTURE_FORCED_AARCH64
which is not undefed for aarch64.
It is only used for JackRequest structures, since enabling for all uses
cases in Jack jackd startup failed with "Bus Error".
Change-Id: I9460840f11870bb699744da09a5dcacddb828d2c
Signed-off-by: Adam Miartus <amiartus@de.adit-jv.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
6 years ago
Timo Wischer
e0ad986398
JackRequest: Make ReadType method static
Therefore no object of the class has to be created to detect the type only.
In addition the member variable fType can be const.
Change-Id: Ib9c484964a93d4f25ca0a354d6852c03a7b33896
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
6 years ago
Rui Nuno Capela
fed6f1e66d
[metadata] Metadata properties implementation. ( #383 )
* [metadata] Metadata properties implementation.
* [metadata] Fixed for shared server metadata-base accessor; alsofixed coding/naming style.
* [metadata] Fixed a tab for space.
* [metadata] Use of Berkeley DB is now truly optional on configure time.
* [metadata] Fixed tabs for spaces, again.
* [metadata] Fixed for shared metadata-base initialization and external clients.
* [metadata] Blind-fix for windows codebase.
* [metadata] Metadata API moved into client-side library only.
* [metadata] Fixed jack_port_uuid() stubbiness, now returning a proper UUID from port index.
* [metadata] Uniform method names.
* [metadata] Fixed PropertyChangeNotify through server async call.
6 years ago
Stephane Letz
a750131fba
Use of jack_free instead of free, cleanup.
12 years ago
sletz
92ccd4f840
Works again on Windows.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4702 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
5d7fbdc066
Cleanup.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4701 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
0d08aa4d72
More robust server/client protocol.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4697 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
045c0544f2
Change JackRequestDecoder for Windows.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4694 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
6046fbe76b
Add JackRequestDecoder class.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4690 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
389a9a572d
Correct Start/Stop for Control API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4536 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
Nedko Arnaudov
d9064f5866
Implement session api for internal clients
13 years ago
Stephane Letz
f62f984b97
Possible fix for http://trac.jackaudio.org/ticket/193 .
14 years ago
Stephane Letz
299bc1bfe9
Cleanup.
14 years ago
Stephane Letz
248d1f16e6
Session API for internal clients in progress.
14 years ago
sletz
ecb84b5f9f
rebase from trunk 4238:4306
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4307 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
fdcb49c063
Correction in jackdmp.cpp: notify_server_stop should be done after server destruction.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4248 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
7254ce1ebc
rebase from trunk 4180:4238
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4239 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
e27f815216
Rework internal slave driver management, JackServerGlobals now handle same parameters as jackdmp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4184 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
a7e8377441
rebase from trunk 4083:4180
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4181 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
5845be1374
jack_client_has_session_callback implementation.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4158 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
97c3a441f5
Use of latency range in all backends. ComputeTotalLatencies now a client/server call.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4151 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
92c5da66da
Revert r4119 (RT notification in the server). JackAudioDriver::ProcessSync now skip backend write in case of graph process failure. Fix incorrect error codes in alsa/usx2y.c and alsa/JackAlsaDriver.cpp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4143 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
4828d0c835
rebase from trunk 4041:4083
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4084 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
Torben Hohn
97d36e3476
fix copy paste errors in protocoll handling
14 years ago
Torben Hohn
5cd7b4dedf
add uuid parameter to ClientCheck method.
Conflicts:
common/JackEngine.cpp
14 years ago
Stéphane LETZ
71d040c011
Fix for SIGPIPE on OSX.
14 years ago
Stéphane LETZ
9bf10e24ab
Correct InternalClientLoad.
15 years ago
Torben Hohn
1a44ede470
fix tabs and convert em to spaces.
15 years ago
Torben Hohn
5e7a792f42
add uuid parameter to jack_client_open...
15 years ago
Torben Hohn
b57d07ddd0
another step for jack-session...
15 years ago
Torben Hohn
3c0d95db60
some progress on jack-session
15 years ago
Torben Hohn
cffa5dfd8e
add marshalling for jack_session_notify and session_event. not complete
15 years ago
sletz
5f68a6557a
rebase from trunk 3813:3899
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3900 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
a4604f7c78
Use a QUIT notification to properly quit the server channel, the server channel thread can then be 'stopped' instead of 'canceled'
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3853 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
6b765f0168
rebase from trunk 3684:3813
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3814 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
136672723a
Simplify server temporary mode : now use a JackTemporaryException.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3784 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
224c41eb59
rebase from trunk 3638:3684
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3685 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
a76e255132
Cleanup JackSocketServerChannel.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3671 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
ed864f5592
Now start server channel thread only when backend has been started (so in JackServer::Start). Should solve race conditions at start time.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3662 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
f2085bbd2c
Parameter renaming.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3657 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
9e481f14ac
Server temporary mode corrected on Linux.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3651 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
1864b36159
Correct server temporary mode : now set a global and quit after server/client message handling is finished.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3650 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
32987ca1d2
Merge Solaris branch back on trunk.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3306 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
44e493896f
Typo
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3087 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
f914445e35
Cleanup in JackWinNamedPipeServerChannel and JackWinNamedPipeServerChannel.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3084 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
f19b74f904
Header cleanup, add --clients and --ports options in configure.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2957 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
3e01068967
Merge Michael Voigt drops branch after reorganization step.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2880 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
1274ff1da2
Add new jack_set_port_rename_callback API, jack_port_set_name is now a server request that call port rename callbacks.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2857 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
c3a0eaf43d
Renaming, add netadapter target in XCode project.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2788 0c269be4-1314-0410-8aa9-9f06e86f4224
16 years ago
sletz
ce5d02b5d9
Correct JackClient::Close() to request server close only if server is running.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2759 0c269be4-1314-0410-8aa9-9f06e86f4224
17 years ago