fix one case of unguarded Option.get in UDP remoting
This commit is contained in:
parent
2fed5ac4f3
commit
d79e768b3f
1 changed files with 2 additions and 1 deletions
|
|
@ -97,7 +97,8 @@ class NettyTransportSettings(config: Config) {
|
|||
|
||||
val SendBufferSize: Option[Int] = optionSize("send-buffer-size")
|
||||
|
||||
val ReceiveBufferSize: Option[Int] = optionSize("receive-buffer-size")
|
||||
val ReceiveBufferSize: Option[Int] = optionSize("receive-buffer-size") requiring (s ⇒
|
||||
s.isDefined || TransportMode != Udp, "receive-buffer-size must be specified for UDP")
|
||||
|
||||
val MaxFrameSize: Int = getBytes("maximum-frame-size").toInt requiring (
|
||||
_ >= 32000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue