-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux + Lazarus issues #488
Comments
"unknown protocol version" is not an Indy error message. Offhand, it sounds more like an OpenSSL error message. Which version of OpenSSL are you trying to use, exactly? And did you verify that the correct version is actually being loaded correctly in the FPC+Linux scenario that doesn't work? The only difference between Indy's Linux support in Delphi vs Lazarus should be the underlying socket API begin used (see the What you have provided is a lot of code to go through, and I have no way to test/debug it, as I don't have Linux or FPC environments available. However, one issue I do see in your code is that you are opening the TLS and non-TLS TCP servers on different listening ports, but your TCP client is only connecting to the non-TLS port even if TLS is being used. So, that alone can cause OpenSSL errors if a non-TLS client connects to a TLS server, or vice versa. |
Hello Remy, Ravil |
And, what are the problems EXACTLY? All you mentioned earlier was "unknown protocol version", but that shouldn't be a factor anymore since you removed SSL/TLS from the test. Initially, you said "fails due to various reasons", but you didn't say what they actually were.
Since I don't have a Lazarus+Linux setup, you will have to debug it for me, and then I can post a fix once the underlying cause has been identified.
Some logic issues I see, but which shouldn't cause platform-related issues:
And, what exactly IS NOT WORKING in the Lazarus+Linux scenario that DOES work in the other scenarios? Please be more specific. |
I've made a small test program to test connections with TCP, UDP and HTTP components and found that:
The program is attached, you can find there a form with "Start server" (TCP, UDP and HTTP) buttons to start servers on the localhost and "Send" buttons to send packets to them, received responses are placed in the memos below. 1) and 2) versions exchange packets as expected, the 3) version cannot accept packets from all three servers and fails due to various reasons, one of them is an "unknown protocol version".
HTTPDemo.zip
The text was updated successfully, but these errors were encountered: