Ver código fonte

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

Zachary Kotlarek 12 anos atrás
pai
commit
086d741994
1 arquivos alterados com 1 adições e 1 exclusões
  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/';