Skip to content

net: NET_CONTEXT_SYNC_RECV relevant #4060

@zephyrbot

Description

@zephyrbot

Reported by Likai Liu:

Find in v1.8.0

Thread occupying CPU forever(if no_preempt).

Set NET_CONTEXT_SYNC_RECV y

If calls net_context_recv more than once use a same context, the thread will occupy CPU forever.

in code:

while (k_sem_take(&context->recv_data_wait, K_NO_WAIT)) {
			;
		}

The issue can be reappeared easily by using shell command “zperf> udp.upload 10.237.164.178 1111 1 1K 1M”

@jukkar jukka :)

(Imported from Jira ZEP-2637)

Metadata

Metadata

Assignees

Labels

area: NetworkingbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions