On 10/23/24 23:36, v...@spamcop.net wrote:
I have tried anything I could think of but I cannot reproduce the issue using
curl as user mailman (or any other for that matter)
Going directly for localhost:8000, using some or all of the headers I can
capture with tcpdump:
```
$ curl -v -H 'Accept-Encoding: gzip, deflate' -H 'Connection: Keep-Alive' -H
'Host: lists.example.org' -A 'python-requests/2.32.3'
http://localhost:8000/mailman3/api/templates/list/community.lists.example.com/list:user:action:subscribe
```
as well as going through the local httpd:
```
$ curl -v --http1.1 -H 'Accept-Encoding: gzip, deflate' -H 'Connection:
Keep-Alive' -H 'Host: lists.example.org' -A 'python-requests/2.32.3'
https://lists.example.org/mailman3/api/templates/list/community.lists.example.com/list:user:action:subscribe
```
Running tcpdump during those runs shows me it's sending the same headers as
mailman does. Thus on http protocol level it's the same, but still the server
returns immediately.
What I have just noticed is that the Date header in the delayed response is the
"late" time. I have even compared tcp headers from either capture. They look
identical down to the frame sizes.
The only difference the last times is that with curl, the server side sends the
ACK for the request and milliseconds later a PSH,ACK with the response headers.
When it comes internally from mailman it sends the ACK for the request and then
5 seconds later it sends the PSH,ACK with the response headers.
I'm unable to explain what's going on. You could try one more thing in
an attempt to duplicate this outside of Mailman. Invoke the same python3
that Mailman does - this may be in a venv or the system python3. If in a
venv, you don't need to activate the venv, just run venv/bin/python.
Then in response to Python's prompts do
```
>>> import requests
>>> res =
requests.get('https://lists.example.org/mailman3/api/templates/list/community.lists.example.com/list:user:action:subscribe',
timeout=5)
```
and see what that does? I think it should time out because this is
exactly what Mailman core is doing tho get the template, and if it does,
perhaps you can determine why from this simple example.
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/YZYDMORI4HZRMF25WEX4KTE7ZEIZVQNW/
This message sent to arch...@mail-archive.com