openresty / openresty/stream-lua-nginx-module

Peek API not implemented for UDP streams

Open
#240 3 comments 3 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

Using the example provided for the peek API for a UDP stream, within the preread_by_lua_block, gives the error:

Attempt to call method 'peek' (a nil value)

Is it possible to get the peek API implemented for UDP streams?

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 with the preread_by_lua_block example and the peek API behavior described in this issue. Trace how stream and UDP requests expose Lua methods, then determine the expected UDP semantics and relevant tests. Done means peek is available for UDP streams without the reported nil-method error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
api, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.