Просмотр исходного кода

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

Zachary Kotlarek 12 лет назад
Родитель
Сommit
086d741994
1 измененных файлов с 1 добавлено и 1 удалено
  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/';