Add SO_RCVLOWAT accessors for Linux and Android
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- api, networking
Direção de pesquisa
The payload names no files, so start from the existing receive-buffer-size accessors and the platform-specific cfg blocks they sit beside; those show the pattern for usize arguments, range checks, and SO_* constants on Linux/Android. Add Socket::recv_lowat and Socket::set_recv_lowat under the all feature, forwarding SO_RCVLOWAT and rejecting values above the kernel's signed range. The proposed TCP test is the done check: a connected socket becomes readable only once queued bytes reach the threshold.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Would socket2 accept Socket::recv_lowat and Socket::set_recv_lowat for the SO_RCVLOWAT socket option?
A TCP receiver can use this option to wait for a batch of received bytes before becoming readable. It is useful when paced traffic otherwise wakes the reader for each small arrival. Raising the threshold can also delay a short read, so the caller still owns when to set it and when to restore it. Linux socket(7)
I propose starting with Linux and Android under the all feature, alongside the existing platform-specific accessors. The methods would use usize in bytes, like the receive buffer size methods, and reject values above the range of the signed integer accepted by the kernel. They would otherwise forward the option to the OS.
The test would use a connected TCP socket and check that it becomes readable when the queued bytes reach the configured threshold.
- Linguagem predominante
- Rust
- Estrelas
- 885
- Forks
- 328
- Merge médio
- 6d 12h
- PRs com merge (30d)
- 2
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rust-lang/socket2
-
Commit lockfileAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
rust-lang/socket2#703 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
windows-sys 0.101.0Talvez já em andamento @xtqqczze assumiu há 3 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
SockAddr::path_len doesn't bound the length by sun_path: as_pathname panics since #691, as_abstract_namespace slices past itTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
`from_timeval` overflows on a non-normalised `tv_usec`Talvez já em andamento @pederbe assumiu há 18 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Build fails on 32-bit glibc (i686, armv7) with libc's `--cfg=libc_unstable_time64`: `tv_usec` is cast to `suseconds_t` (i32) for an i64 fieldTalvez já em andamento @omrzk assumiu há 28 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
rust-lang/socket2#684 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de rust-lang/socket2
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
infra
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
available bug good first issue tooling
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Nixitov/Riptide-Native#817 ·
Mantenedores costumam responder em até 1 dia