forked from External/mage
Set SocketWriteTimeout to 10 seconds.
This commit is contained in:
parent
ed341528d9
commit
35791ac6b7
9 changed files with 164 additions and 154 deletions
|
|
@ -24,8 +24,7 @@
|
|||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
*/
|
||||
package mage.server.util;
|
||||
|
||||
import java.io.File;
|
||||
|
|
@ -33,7 +32,6 @@ import java.util.List;
|
|||
import javax.xml.bind.JAXBContext;
|
||||
import javax.xml.bind.JAXBException;
|
||||
import javax.xml.bind.Unmarshaller;
|
||||
|
||||
import mage.server.util.config.Config;
|
||||
import mage.server.util.config.GamePlugin;
|
||||
import mage.server.util.config.Plugin;
|
||||
|
|
@ -48,7 +46,6 @@ public enum ConfigSettings {
|
|||
|
||||
private Config config;
|
||||
|
||||
|
||||
ConfigSettings() {
|
||||
try {
|
||||
JAXBContext jaxbContext = JAXBContext.newInstance("mage.server.util.config");
|
||||
|
|
@ -79,6 +76,10 @@ public enum ConfigSettings {
|
|||
return config.getServer().getLeasePeriod().intValue();
|
||||
}
|
||||
|
||||
public int getSocketWriteTimeout() {
|
||||
return config.getServer().getSocketWriteTimeout().intValue();
|
||||
}
|
||||
|
||||
public int getMaxPoolSize() {
|
||||
return config.getServer().getMaxPoolSize().intValue();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue