Permalink
Browse files

default to no fragmentation, max_message_size=0

  • Loading branch information...
1 parent b988374 commit d83de8e7c44376d77385d00214d6ffb62870d695 @mnaamani committed Oct 3, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 otr.js
  2. +1 −1 src/message.cc
View
4 otr.js
@@ -190,8 +190,8 @@ function OtrEventHandler( otrChannel ){
emit(o.EVENT);
return;
case "max_message_size":
- if(!otrChannel.parameters) return 1450; //for UDP packets..
- return otrChannel.parameters.MTU || 1450;
+ if(!otrChannel.parameters) return 0; //No fragmentation
+ return otrChannel.parameters.MTU || 0;//No fragmentation
case "inject_message":
//debug("INJECT:"+o.message);
emit(o.EVENT,o.message);
View
@@ -609,7 +609,7 @@ int MessageAppOps::op_max_message_size(void *opdata, ConnContext *context){
node::FatalException(try_catch);
}
- if(!result->IsNumber()) return 1450;//default max message size
+ if(!result->IsNumber()) return 0;//default no fragmentation
return (int)result->NumberValue();
}

0 comments on commit d83de8e

Please sign in to comment.