summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-29 06:36:19 +0000
committerDavid Robillard <d@drobilla.net>2007-04-29 06:36:19 +0000
commitcef54205d4a3776822cbf6726fa6cfb2a6e9bee4 (patch)
treede52894f4cb2823eb515eade31d19eeab62bd036 /src/libs/engine
parenta74b55b40612a63b0be4964e626497fa24c55305 (diff)
downloadingen-cef54205d4a3776822cbf6726fa6cfb2a6e9bee4.tar.gz
ingen-cef54205d4a3776822cbf6726fa6cfb2a6e9bee4.tar.bz2
ingen-cef54205d4a3776822cbf6726fa6cfb2a6e9bee4.zip
Set maximum bundle size to ideal UDP value.
git-svn-id: http://svn.drobilla.net/lad/ingen@483 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/OSCClientSender.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/OSCClientSender.cpp b/src/libs/engine/OSCClientSender.cpp
index 7126c67b..1ba9491d 100644
--- a/src/libs/engine/OSCClientSender.cpp
+++ b/src/libs/engine/OSCClientSender.cpp
@@ -507,8 +507,8 @@ OSCClientSender::new_plugin(string uri, string type_uri, string name)
return;
// FIXME: size? liblo doesn't export this.
- // don't want to exceed max UDP packet size
- static const size_t MAX_BUNDLE_SIZE = 32768; // FIXME: best value?
+ // Don't want to exceed max UDP packet size (1500 bytes)
+ static const size_t MAX_BUNDLE_SIZE = 1500 - 32*5;
lo_message m = lo_message_new();
lo_message_add_string(m, uri.c_str());