Explorar o código

For some reason send() fails when the message is more than 2048 bytes. Limit ourselves until that is worked out.

Zachary Kotlarek %!s(int64=12) %!d(string=hai) anos
pai
achega
086d741994
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dmx/DMX.pm

+ 1 - 1
dmx/DMX.pm

@@ -17,7 +17,7 @@ if ($ENV{'DEBUG'}) {
 
 # Config
 my $SOCK_TIMEOUT = 5;
-my $MAX_CMD_LEN  = 16384;
+my $MAX_CMD_LEN  = 2048;
 my $TEMP_DIR     = `getconf DARWIN_USER_TEMP_DIR`;
 chomp($TEMP_DIR);
 my $DATA_DIR    = $TEMP_DIR . 'plexMonitor/';