Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

default to no fragmentation, max_message_size=0

  • Loading branch information...
commit d83de8e7c44376d77385d00214d6ffb62870d695 1 parent b988374
@mnaamani authored
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
2  src/message.cc
@@ -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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.