English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 30 March 2023, 13:36   #1
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 408
AmiSSL unstable

Hi

My Amiga 3.x app is unstable when I call SSL_Connect() or SSL_Read(). Sometimes it works fine. Sometimes it causes the program to fail with error #80000004. Sometimes it even corrupts the entire OS and the display shows garbage requiring a reboot. I can't figure out what the issue is, especially since it works fine about half the time. What could be going on here? I'm using AmiSSL 5.8
Nightfox is offline  
Old 30 March 2023, 14:50   #2
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 44
Posts: 936
You need more than the default 4kB stack to use AmiSSL, 8kB is enough as far as my experience goes.
patrik is offline  
Old 30 March 2023, 16:10   #3
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 408
Quote:
Originally Posted by patrik View Post
You need more than the default 4kB stack to use AmiSSL, 8kB is enough as far as my experience goes.
I love you! It's now working perfectly! Thank you so much <3. You have no idea how long I've looked at my code trying to find something wrong with it that could cause this.
Nightfox is offline  
Old 30 March 2023, 18:56   #4
Futaura
Registered User
 
Futaura's Avatar
 
Join Date: Aug 2018
Location: United Kingdom
Posts: 198
I'm going to have to check this out at some point, as I'm sure OpenSSL used to be lighter on stack usage - 4K used to be enough, I think. Probably the provider/param stuff could be pushing it up.
Futaura is offline  
Old 30 March 2023, 23:52   #5
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 44
Posts: 936
It has been like this since 4.x for the record. Keep in mind that it is not only AmiSSL itself that uses stack when you call SSL_Connect(), SSL_Read() etc, but the underlaying calls to bsdsocket.library will also consume stack.
patrik is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
AmiSSL 4.9 Now Available Futaura News 4 06 April 2021 19:44
New AmiSSL v4.6 stevelord News 1 09 June 2020 13:42
AmiSSL 4 Robbie support.Apps 62 17 February 2020 19:54
AmiSSL 4.0 Sir_Lucas News 6 09 February 2017 12:45
new AmiSSL hal9000 support.Apps 1 14 August 2016 18:23

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:30.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07357 seconds with 13 queries