AcornSSL freezing the desktop?
André Timmermans (100) 655 posts |
I am in the process of adding support for https internet radios to DigitalCD and DiskSample with the help of AcornSSL. DiskSample connect and read data from the internet server within callbacks and it works but I encountered 2 issues: If some AcornSSL specialist could have a look, I have put a test version here . To reproduce: |
André Timmermans (100) 655 posts |
Ok, problem partially solved. typo in shutdown/close SWI numbers, so I can test more internet radios. So far, the issues I found in AcornSSL are as follow: |
Dave Higton (1515) 3496 posts |
Isn’t that simply caused by not calling Shutdown, 2 before Close? I hasten to add that I’m still a beginner at sockets stuff. |
André Timmermans (100) 655 posts |
No I perform the Shutdown, 2 just before Close. |
André Timmermans (100) 655 posts |
While I was trying the ROD stack on the old Pi3 I could not reproduce the issues (same AcornSSL + mbedTLS version). The sockets close correctly. I thing SSL negociation is still blocking the desktop but with the ROD stack it happens so fast that it’s difficult to check. |
Dave Higton (1515) 3496 posts |
André: this may be the reason for the blocking you’re seeing: https://www.riscosopen.org/forum/forums/2/topics/15680?page=8#posts-124094 |
André Timmermans (100) 655 posts |
I removed the ROD stack from the old Pi3 and the FIN_WAIT_2 reappeared. Since Pi4 and Pi3 uses different Ether drivers, this particular problem definitely comes from the ROOL Internet module. |
André Timmermans (100) 655 posts |
Since I am now on OS 5.30 I decided to do a quick retest. Well, the increase to 256 sockets should alleviate the issue of socket starvation and the stiffing of the machine. Edit: seems that after a few minutes the disappeared, so some progress there. |