zhhyu7 opened a new pull request, #17899:
URL: https://github.com/apache/nuttx/pull/17899
## Summary
urgent data needs to be treated as normal data when CONFIG_NET_TCPURGDATA
disable. some test sets will verify this behavior, correct the processing logic.
## Impact
tcp urgent data.
## Testing
sim:matter with host and disable CONFIG_NET_TCPURGDATA.
test code on the host:
```
#define SERVER_IP "10.0.1.2"
#define PORT 7777
#define BUFFER_SIZE 1024
sockfd = socket(AF_INET, SOCK_STREAM, 0);
connect(sockfd, (struct sockaddr *)&server_addr, sizeof(server_addr));
send(sockfd, "oob", strlen("oob"), MSG_OOB);
send(sockfd, "hello", strlen("hello"), 0);
```
test code on the NuttX:
```
#define SERVER_IP "0.0.0.0"
#define PORT 7777
#define BUFFER_SIZE 1024
server_fd = socket(AF_INET, SOCK_STREAM, 0);
bind(server_fd, (struct sockaddr *)&server_addr, sizeof(server_addr));
listen(server_fd, 5);
client_fd = accept(server_fd, (struct sockaddr *)&client_addr, &addr_len);
ret = recv(client_fd, buffer, BUFFER_SIZE, 0);
printf("Received message: [%d] %s\n", ret, buffer);
```
test log without this change:
```
NuttShell (NSH) NuttX-12.12.0
MOTD: username=admin password=Administrator
nsh> hello
Received message: [5] hello
nsh>
```
test log with this change:
```
NuttShell (NSH) NuttX-12.12.0
MOTD: username=admin password=Administrator
nsh> hello
Received message: [8] oobhello
nsh>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]