Sfoglia il codice sorgente

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

Zachary Kotlarek 12 anni fa
parent
commit
086d741994
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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/';