## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Apr 10 00:38

rlebeau on master

Patch from fpctuxe to make TIdS… (compare)

• Apr 10 00:14

rlebeau on master

• Mar 31 01:31
rlebeau commented #341
• Mar 31 01:14
rlebeau assigned #341
• Mar 30 06:01
eichgee commented #341
• Mar 30 01:48
rlebeau edited #341
• Mar 30 01:46
rlebeau labeled #341
• Mar 30 01:46
rlebeau labeled #341
• Mar 30 01:45
rlebeau commented #341
• Mar 29 05:45
eichgee opened #341
• Mar 25 15:20
rlebeau commented #340
• Mar 25 15:20
rlebeau commented #146
• Mar 25 15:20
rlebeau commented #340
• Mar 24 22:57
el3ctr0lyte opened #340
• Mar 24 18:29

rlebeau on master

#53 adding some extra parenthes… (compare)

• Mar 24 18:09
jsisolucoes commented #53
• Mar 24 17:43
rlebeau commented #339
• Mar 24 17:42
rlebeau commented #339
• Mar 24 17:42

rlebeau on master

Fix for typo in Computil.dpr (compare)

• Mar 24 17:39
rlebeau commented #53
Remy Lebeau
@rlebeau
@czhower can you redirect forums2.atozed.com to a temp site that tells users why the site is down?
Ludwig Behm
@lbehm
Or just reinstall/fix php?
Remy Lebeau
@rlebeau
Fix the machine crashing, maybe. But Chad wants to get rid of PHP altogether, so a reinstall is probably not an option. I'd hate to lose all of the current history if they switch to another forum solution
Matthijs ter Woord
@mterwoord
@rlebeau problem is php uses a lot of resources on the server...
davidpn
@davidpn
@rlebeau What's the proper way to clone a TIdNNTP and TIdSSLIOHandlerSocketOpenSSL? I'm using : TIdSSLIOHandlerSocketBase(AHandler).Clone where AHandler is the original handler. This works OK on Windows, but not on mobile.. I've even tried explicitly copying over the Host and Port properties, to no avail
Remy Lebeau
@rlebeau
@davidpn Why are you trying to clone it at all? You really shouldn't be. You should be using a completely separate TIdSSLIOHandlerSocketOpenSSL object for each TIdNNTP object. Clone() is meant to create a child SSLIOHandler that is attached to a parent SSLIOHandler, such as in TIdFTP when it creates a data transfer connection. You should not be using a linked clone in TIdNNTP
davidpn
@davidpn
OK.. I tried creating an instance of TIdSSLIOHandlerSocketOpenSSL for each TIdNNTP and was receiving invalid pointer issues when the objects are being destroyed
Remy Lebeau
@rlebeau
I can't answer that since I can't see how your code creates and destroys objects, or what the call stack looks like when the pointer errors happen. That is what your debugger is for.
davidpn
@davidpn
Remy Lebeau
@rlebeau
FSSLClone.SSLOptions := SSL.SSLOptions; is wrong, don't do that. The SSLOptions property setter does not make a copy, it assigns ownership. On desktop platforms, sharing a TIdSSSLOptions object is a memory leak and a pointer error as you end up with multiple TIdSSLIOHandlerSocketOpenSSL objects trying to free the same TIdSSLOptions object during destruction. On mobile systems, ARC should be handling those issues, but it is still a logic bug having multiple client-side TIdSSLIOHandlerSocketOpenSSL objects sharing the same TIdSSLOptions object in general.
davidpn
@davidpn
oops.. here was me thinking it was a set :worried:
thanks
(I'd forgotten)
davidpn
@davidpn
Making progress.. now instead of never returning I get a connection timeout
davidpn
@davidpn
So the problem was that I was creating the handler instance inside of a method and assigning it directly to IOHandler.. it gets destroyed at the end of the method.. holding a reference to it solves the problem
Kudzu
@czhower
Many forums can import from PHP. PHP has been problematic ever since we installed it years ago - even though its regualarly been patched etc . But when it finally was able to crash and power off our server several timse in a single day and result in 36+ hours off time... I've hit my limit for PHP.
PHP would eat all the RAM on the server... causing a fault and power off
and sometimes it would do it during boot... making it really hard to get a remote server back online ... fortunately we got it online long enough to disable php.
Every power off was preceded immediately in the event log but an out of system ram caused by PHP and disabling PHP fixed all issues immediately.
Ludwig Behm
@lbehm
@czhower which php version are you using? And which forum system?
@mterwoord well than just restrict it? Nobody sane would give a mssql server all the memory, right?
Matthijs ter Woord
@mterwoord
Well, I personally don't believe PHP would cause this, but lets see....
Ludwig Behm
@lbehm
@mterwoord with a badly written php application and php with default settings any system could run out of memory - especially with an outdated php
@czhower Did you use phpBB?
Kudzu
@czhower
Yes it was PHPBB. And no matter how many times we kept upgrading it - new problems always came back. Its just too much of a liability.
Kudzu
@czhower
in short - even when keeping both PHP and PHPBB for the last 6+ years weve had it it has been nothing but problems.
Ludwig Behm
@lbehm
what did you expect? php in iis with mysql on win2k3? unpatched! btw: nobody designed that for windows environment!
Kudzu
@czhower
You aren't reading... we continually patched it... both PHP and PHPBB.... and it wasnt windows 2003.... Its Windows Server 2012.
Matthijs ter Woord
@mterwoord
still patched
Kudzu
@czhower
Is it? Either way Windows and PHP an dPHPBB were patched...
Matthijs ter Woord
@mterwoord
yes, but point of @devimplode i think is tha win2k3 is unmaintained by ms..
Kudzu
@czhower
the latest one wasnt the latest PHPBB but even when we used to use latest revs - its been nothing but problems from teh get go.
Matthijs ter Woord
@mterwoord
(unless paying \$)
Ludwig Behm
@lbehm
okok then I'm sorry. I think I mixed it up with a forum of embarcadero which I saw about 2 month ago. (I was annoyed because it was running php-5.2 on iis6)
Remy Lebeau
@rlebeau
@davidpn yeah, the IOHandler property is a weak reference on ARC, you need a strong reference to keep the object alive. When dynamically creating IOHandler objects, I usually just assign the connection as the Owner instead of nil.
are there any decent forum softwares worth migrating to that can import forum data from phpBB?
Ludwig Behm
@lbehm
did you use any additional plugins? any special modifications?
where do you want to go? .net? same host?
davidpn
@davidpn
thanks Remy
Remy Lebeau
@rlebeau
@czhower can you redirect forums2.atozed.com to a temp site that tells users why the site is down? or get PHP running and put it in read-only mode? Or something, so the users know that the site is intentionally down and not actually dead.
Remy Lebeau
@rlebeau
@czhower since you want to switch to a different forum solution, maybe we can do something like this to archive the current forum first: https://ibboard.co.uk/Programming/how-to-archive-phpbb.html
Kudzu
@czhower
yes... Remy my big issue now is time... Im still not fully functional after the surgery and Ive got such a huge backlog... Could you help with it?
Remy Lebeau
@rlebeau
@czhower I can't, because the php forum is down, and I don't have access to the server anyway.
Matthijs ter Woord
@mterwoord
@rlebeau Thats something we can probably fix (need to discuss with chad though)
@rlebeau so, assuming access is provided to you (in whatever form needed), you could help with moving?
Remy Lebeau
@rlebeau
@mterwoord I'm not sure I would be comfortable messing around with the server, I was just tossing out ideas. Do you even know what new forum software you want to migrate to? Maybe the existing PHPBB content can actually be moved into the new system, instead of just archiving a static backup copy of it.
Matthijs ter Woord
@mterwoord
@czhower has to answer that one....
Kudzu
@czhower
sorry Remy for late reply. was in hospital. catching up now... there are some .net based phpbb types and some can import from phpbb.. maybe look at those?
Kudzu
@czhower
and if you can narrow it down to a short list we can pick one
Remy Lebeau
@rlebeau
ok