openresty / openresty/stream-lua-nginx-module

reqsock:peek for UDP Does it work?

Open
#373 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
749
Forks
210
Avg merge
4h 31m
Merged PRs (30d)
3

Description

I have been trying to use client_sock.peek to pull some data from UDP to determine my packet routing. When I try peek with UDP it appears empty (nil). I have seen documentation around peek with TCP and conversations debating whether or not UDP would work the same. Can you please confirm if peek with UDP should function or not?

Contributor guide

No contributing guide indexed for this repository

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 by reading the reqsock:peek documentation and the client_sock.peek behavior described in the issue, then compare the documented TCP behavior with UDP semantics. Determine whether UDP peek is supported and document the observed behavior or expected limitation; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.