Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 19 23:54
    rlebeau edited #287
  • Feb 19 23:53
    rlebeau edited #287
  • Feb 19 23:39
    rlebeau labeled #287
  • Feb 19 23:39
    rlebeau labeled #287
  • Feb 19 23:39
    rlebeau assigned #287
  • Feb 19 23:39
    rlebeau opened #287
  • Feb 19 18:01

    rlebeau on master

    some duplicates remove AND some… (compare)

  • Feb 19 18:01
    rlebeau closed #286
  • Feb 19 02:13
    nanashisutesoute opened #286
  • Feb 17 08:25
    Athris closed #285
  • Feb 15 01:00

    rlebeau on master

    Fixing a typo in IdCTypes.pas (compare)

  • Feb 15 00:46

    rlebeau on master

    Move tweaks for IdCTypes.pas (compare)

  • Feb 14 23:58

    rlebeau on master

    Adding {$WARN SYMBOL_PLATFORM O… (compare)

  • Feb 14 23:51
    rlebeau commented #285
  • Feb 14 23:50

    rlebeau on master

    Adding .dproj files for Delphi … (compare)

  • Feb 14 20:27

    rlebeau on master

    Fix for compiler error in TIdSt… (compare)

  • Feb 14 19:03

    rlebeau on master

    Minor formatting tweaks to IdCT… (compare)

  • Feb 14 18:50

    rlebeau on master

    Add alias for C size_t type and… (compare)

  • Feb 14 18:50
    rlebeau closed #282
  • Feb 14 18:44
    rlebeau labeled #285
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
I've put together a test case that illustrates the problem: https://forums.embarcadero.com/thread.jspa?messageID=826456&tstart=0#826456
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
chad, iirc it's 2008 r2
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
davidpn
@davidpn
wishing you a speedy recovery, @czhower