Пропатчен Seastar по конвертации типов и балансировке UDP-потоков для Posix-стека.

This commit is contained in:
Sergey Maslenkov 2024-09-12 12:22:06 +03:00
parent 51fa7381d5
commit 025b78dbe3
3 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ metric_value metric_value::operator+(const metric_value& c) {
}
void metric_value::ulong_conversion_error(double d) {
throw std::range_error(format("cannot convert double value {} to unsigned long", d));
seastar_logger.warn("cannot convert double value {} to unsigned long", d);
}
metric_definition_impl::metric_definition_impl(

View File

@ -228,7 +228,7 @@ struct cpwriter {
}
case data_type::COUNTER:
case data_type::REAL_COUNTER:
write(v.ui()); // unsigned int 64, big endian
write(v.i()); // int 64, big endian
break;
default:
assert(0);

View File

@ -815,7 +815,7 @@ class posix_datagram_channel : public datagram_channel_impl {
if (is_inet(family)) {
fd.setsockopt(SOL_IP, IP_PKTINFO, true);
if (engine().posix_reuseport_available()) {
if (true) { //(engine().posix_reuseport_available()) {
fd.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1);
}
}