Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,791
» Latest member: Patryk
» Forum threads: 1,805
» Forum posts: 8,905

Full Statistics

Online Users
There are currently 115 online users.
» 0 Member(s) | 112 Guest(s)
Bing, Google, Yandex

Latest Threads
Throttle multiples connec...
Forum: Indy General Discussion
Last Post: Adrien
1 hour ago
» Replies: 0
» Views: 8
New Property in iwbsdropd...
Forum: IntraWeb General Discussion
Last Post: Anto90
01-18-2023, 04:44 PM
» Replies: 0
» Views: 113
After change to http.sys,...
Forum: IntraWeb General Discussion
Last Post: magosk
01-18-2023, 03:36 PM
» Replies: 9
» Views: 772
OpenSSL 1.1 Support
Forum: Indy General Discussion
Last Post: rlebeau
01-18-2023, 01:26 AM
» Replies: 7
» Views: 3,595
Instalar IntraWeb no Delp...
Forum: IntraWeb Dúvidas Gerais
Last Post: JacksonGomes
01-16-2023, 09:13 PM
» Replies: 1
» Views: 636
Taborder problem on 15.2....
Forum: IntraWeb General Discussion
Last Post: SorenJensen
01-16-2023, 02:34 PM
» Replies: 0
» Views: 110
IWCertificateManager
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
01-16-2023, 03:11 AM
» Replies: 2
» Views: 313
Parameters
Forum: IntraWeb General Discussion
Last Post: mike.price@asterox.net
01-15-2023, 09:44 AM
» Replies: 2
» Views: 348
Zlib not found error in I...
Forum: IntraWeb General Discussion
Last Post: andy@seychelles.sc
01-13-2023, 06:22 PM
» Replies: 2
» Views: 331
Plugin for Wordpress
Forum: IntraWeb General Discussion
Last Post: joelcc
01-11-2023, 08:11 PM
» Replies: 0
» Views: 193

 
  Throttle multiples connections ?
Posted by: Adrien - 1 hour ago - Forum: Indy General Discussion - No Replies

Hello,

I'm wondering if there is a way to throttle a group of connections using a TIdInterceptThrottler, or some other way.

2 things I'm looking to achieve:

1) On the client side, I am using multiple connections to send data to a server. I want to be able to limit all these connections to a certain number of bits per second. Currently I'm able to throttle each connection individually, but not as a "group". A naive way would be to use n different TidInterceptThrottlers for n established connections and set BitsPerSec to MaxBytesIWant div n, but if some connections are no longer used, the remaining connection would be unnecessarily throttled to a lower value.

2) On the server side, certain uploads initiated by different clients are treated as the same global operation, and I would be able to allow them to be throttled as a whole. For example, set a specific BitsPerSec limit for all these connections.

Is there a way to do this with Indy 10?

Kind regards,

Adrien

Print this item

  New Property in iwbsdropdown
Posted by: Anto90 - 01-18-2023, 04:44 PM - Forum: IntraWeb General Discussion - No Replies

Hello,
it possibile to add LockOnAsyncEvent also in DropdownItems of IWBSDROPDOWN in iwbootstrap 3?

It could be a good idea to show spinner in async event...

Another..
It can be possible add property visible and method Hide to hide single element of DropDownItems of IWBSDropdown. Sometimes i must hide some menu items and it could be better don't like javascript do hide but use its own method.

Thank you
Andrea

Print this item

  Taborder problem on 15.2.32 and D10.4.2
Posted by: SorenJensen - 01-16-2023, 02:34 PM - Forum: IntraWeb General Discussion - No Replies

Hi All,

I recently updated Delphi to 10.4.2 and installed IW 15.2.32 and recompiled some of my programs. The compilation runs without problems, but when running the program, I have a problem with the taborder:

When a form is displayed, the cursor is in the component with taborder 0. In this case IWEdit1. When pressing the tab key, the cursor jumps outside the form, onto the other elements of the browser, instead of jumping to the component with taborder 1 inside the form. It's the same for all of the  browsers I have tested (Edge, Chrome, Cliqz and Firefox). To get to the component with taborder 1, I have to use the mouse.

From the component with taborder 1, to the following, the tab key then reacts as expected, all the way round until it again is in the component with taborder 0.

Also, backtab (shift-tab) works as usual, for all components, also the one with taborder 0.

Have anybody experienced something similar, and if, what did you do to solve the problem.

Regards
Soren

Print this item

  Plugin for Wordpress
Posted by: joelcc - 01-11-2023, 08:11 PM - Forum: IntraWeb General Discussion - No Replies

I know that the iw17 roadmap has the ability to do a Word press Plugin. 

Do you know if there are plans to implement this plugin in iw15?

Print this item

  TIWBSTabControl
Posted by: JamaisContent - 01-10-2023, 04:20 PM - Forum: IntraWeb General Discussion - No Replies

Hi,
I would like to use the TIWBSTabControl component (Katunga Bootstrap 3) to create an assistant-style app with "Continue", "Back", etc. buttons.  For that I would need to make the Tabs invisible and only allow to programmatically change the active page/tab if a user hits Continue or Back.

Has anyone found a way to make the tabs of the individual pages invisible like it is possible in VCL Pagecontrol component?
Any hint would be appreciated!

Regards,
Bernhard

Print this item

  Zlib not found error in IntraWeb Version: 11.0.65
Posted by: andy@seychelles.sc - 01-10-2023, 01:47 AM - Forum: IntraWeb General Discussion - Replies (2)

Hi All,

I have an old Intraweb project from 2019.
The original project was build in Delphi 7 on WindowsXP (x86) , VCL for the Web Version: 11.0.52. (Build Date: Sep 09, 2011)  Edition: Ultimate
I used zlib.dll version 1.1.4

I have recently move computer from WindowsXP to Windows 10.

When I compile this project on a new PC Windows 10 (64bit) , Delphi 7 using IntraWeb Version: 11.0.65. Edition: Ultimate
I copied the same zlib.dll version 1.1.4 in my application folder as before.


When I set Compression Enabled and compile I get the following Error.

Exception EReadError : Error reading IWServerController.Compression.Enabled : zlib.dll not found in C:\Temp

In fact even on a fresh Hello World test project I still get this error.
I think it could be due to wrong zlib.dll file. I have tried to download multiple version of zlib.dll (including the latest 1.2.3) but still get the same error.

Can anyone help?

Current Environment
Delphi 7
OS : Windows 10 64bit
Edition: Ultimate
IntraWeb Version: 11.0.65
Build Date: Aug 17, 2016

Regards

Andy

Print this item

  IndyTextEncoding_8Bit Issue?
Posted by: eddie1473 - 01-09-2023, 03:49 AM - Forum: Indy General Discussion - Replies (2)

Greetings,

I am trying to convert the TCP classes in an existing Delphi 5 application to Indy so that I can add SSL. The application sends text as well as binary commands to a server as strings over a TCP connection. The commands have a wide range of values outside of the normal ASCII character range (0x80 to 0xFF). I have configured the IOHandler to use IndyTextEncoding_8Bit encoding, however it appears that values from 0x80 to 0x9F are still being sent as 0x3F (the '?' which I believe is sent when using sending non-ASCII chars with ASCII encoding). I have created a simple test client/server app to recreate the behavior that I'm seeing. Here is the relevant client code:

Code:
constructor TestClient.Create();
begin
  inherited Create;
  TCPC := TIdTCPClient.Create();
  TCPC.ConnectTimeout := 5000;
  TCPC.Host := 'localhost';
  TCPC.Port := 5000;
  try
    TCPC.Connect;
    TCPC.IOHandler.DefStringEncoding := IndyTextEncoding_8Bit;
  except
    on Exception do begin
      ShowMessage('error occurred during connect');
    end;
  end;
end;

procedure TForm1.Button2Click(Sender: TObject);
  var s: string;
begin
  s := #128;
  RunClient.TCPC.IOHandler.Write(s);
end;

The server has also been configured to use IndyTextEncoding_8Bit encoding and is receiving the expected hex values when sending data outside of the 0x80 to 0x9F range. I have also verified with Wireshark that that 0x3F is being sent by the client when running the above code.

Is there a different encoding type that I should be using? or some issue with the 0x80 to 0x9F value range? perhaps an incompatibility when using Indy with Delphi 5? I've been pulling my hair out and I'm hoping that I'm missing something obvious (I'm new to Delphi so that could easily be the case!).

-Ed

Print this item

  Parameters
Posted by: mike.price@asterox.net - 01-08-2023, 10:58 AM - Forum: IntraWeb General Discussion - Replies (2)

I have developed a simple ISAPI program Intraweb 15 latest Delphi.

Deploys and work great this is the URL slightly changed: http://88.209.225.199:8092

I want to send parameters to the app when I start it.

I am sorry this must be so simple but I have been searching for hours for solution with no luck.

So how do I add parameters to that URL and how do I read them in Intraweb app

Thanks Mike

Print this item

  IWCertificateManager
Posted by: MJS@mjs.us - 01-06-2023, 10:44 PM - Forum: IntraWeb General Discussion - Replies (2)

For AToZed:  I'm assuming it's ok to bundle and digitally sign IWCertificateManager with customer installs?

Print this item

  After change to http.sys, errors on production servers after a few days of operation
Posted by: magosk - 01-03-2023, 10:56 AM - Forum: IntraWeb General Discussion - Replies (9)

Hi,

let me give you some background info first: We have a couple of production servers powering a SaaS solution, one of them serving as a master and the other a slave (continuously getting data backups from the master). These both contain three IntraWeb standalone applications (running as services) as well as a number of other backend services (some of which expose APIs). Previously, these services listened on different ports (for https traffic), with an external firewall translating calls on the standard 443 port for different external IP addresses (connected to unique URLs) to the port used internally on the server. The three IW services as well as a couple of APIs written in Delphi were all using OpenSSL, whereas one .NET service used Windows own SSL functionality for its API. As we were running out of IP addresses on the hosting site, we decided to refactor our applications to all using http.sys, so that all services could share the same port and external IP address (being distinguished by different paths in the URL, such as '/api', '/m' etc.), . A secondary reason was for not being stuck with OpenSSL 1.0.2 as this no longer receives updates.

This all worked well in test environments and also initially after upgrading our production services to the new version using http.sys. However, after a few days of operation the master server started getting various errors, which could not be resolved by anything else than a restart of the server. This repeated itself every 2 or 3 days. We tried switching operation to the other (slave) server, but then the same errors occurred there (after running a few days). We also tried upgrading the OS of one of the servers to Windows Server 2019 (previously both were running Windows Server 2012), but it did not solve the problem. The errors we saw in our maintenance logs had not occurred before the upgrade. They affect different services and you do not see any obvious connection between them, but once one of the errors started occurring, the others soon followed. My guess is that they are different symptoms of the same underlying issue, but not necessarily a clue to what the root problem is. These are the errors we have seen:


  1. Exception EMenuError with message 'Out of system resources' raised when trying to set Enabled to False for menu item (from an IntraWeb application)
  2. A command-line application sox.exe used for audio file conversions fails, and you could (at least in Win 2012) see a corresponding error for a kernel dll in the Windows Event log.
  3. Parsing of XML files using MSXML (Microsoft XDOM) fails.
  4. Failing to set up a new connection to a NexusDB server using a so called SharedMemory transport.
  5. Seeing error event 10010 in Windows event log (timeout error for DistributedCOM), however not seemingly connected to an event in any of our services.   

We have improved error handling in our code, removed unnecessary usage of the sox application, replaced MSXML with OXML, using another type of transport towards nxServer etc. making our applications more robust against the errors, but the errors 1, 2 and 5 still do occur typically after 2-10 days of operation since the last restart and then we need to restart again. Has anyone else experienced similar problems? Any insights to as to why this is happening, and possible solutions or workarounds would be much appreciated.

Best regards

Magnus Oskarsson

Print this item