---
title: "Ice.UDP.*"
url: https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties
language: ruby
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Ice.UDP.\*

Programming language: Ruby. Other languages: [C++](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/java.md), [JavaScript](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/php.md), [Python](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/python.md), [Swift](https://docs.zeroc.com/ice/3.8/property-reference/ice-udp-properties/swift.md).

## Ice.UDP.RcvSize

`Ice.UDP.RcvSize=num`

This property sets the UDP receive buffer size to the specified value in bytes. Ice discards an incoming datagram larger than the receive buffer size minus 28 bytes, and logs a warning if [Ice.Warn.Datagrams](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/ruby.md) is set.

The OS may impose lower and upper limits on the receive buffer size or otherwise adjust the buffer size. If a limit is requested that is lower than the OS-imposed minimum, the value is silently adjusted to the OS-imposed minimum. If a limit is requested that is larger than the OS-imposed maximum, the value is adjusted to the OS-imposed maximum; in addition, Ice logs a warning showing the requested size and the adjusted size.

The default value is `0`, which leaves the operating system's buffer size unchanged.

Note that, on many operating systems, it is possible to set a buffer size greater than 65535. Such settings do not change the hard limit of 65507 bytes for the payload of a UDP packet, but merely affect how much data can be buffered by the kernel.

A buffer smaller than 65535 bytes limits the size of Ice datagrams, whether it comes from this property or from the operating system's default.

## Ice.UDP.SndSize

`Ice.UDP.SndSize=num`

This property sets the UDP send buffer size to the specified value in bytes. Sending a request or batch request larger than the send buffer size minus 28 bytes fails with a `DatagramLimitException`.

The OS may impose lower and upper limits on the send buffer size or otherwise adjust the buffer size. If a limit is requested that is lower than the OS-imposed minimum, the value is silently adjusted to the OS-imposed minimum. If a limit is requested that is larger than the OS-imposed maximum, the value is adjusted to the OS-imposed maximum; in addition, Ice logs a warning showing the requested size and the adjusted size.

The default value is `0`, which leaves the operating system's buffer size unchanged.

Note that, on many operating systems, it is possible to set a buffer size greater than 65535. Such settings do not change the hard limit of 65507 bytes for the payload of a UDP packet, but merely affect how much data can be buffered by the kernel.

A buffer smaller than 65535 bytes limits the size of Ice datagrams, whether it comes from this property or from the operating system's default.
