redpanda-data / redpanda-data/connect

Receive UDP packets

Open
#875 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement inputs
Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

Hi

I have an issue receiving UDP packets. The problem seems to be with codec, either requiring a newline or some other delimiter to actually create a message. I just need a packet boundary (one packet = one message) and 'codec: all-bytes' does not do that either for me. I am not sure how to proceed on this. Any ideas?

If ok I could make a PR and try either rewrite the code and try fix this. I can also look into adding metadata as mentioned in #327 at the same time.

My config. As UDP sender I can use nc -w 0 -u 127.0.0.1 5000 < myfile.

input:
  socket_server:
    network: udp
    address: 0.0.0.0:5000

pipeline:
  processors: []

output:
  type: stdout```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the socket_server input configured for UDP on 0.0.0.0:5000 and reproduce the issue using the provided nc command and sample configuration. Trace how the selected codec handles UDP datagrams; done means each UDP packet is emitted as exactly one message without requiring a newline or other delimiter.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking, stream-processing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.