Re: [twsocket] Converting a cache to AVL tree

2011-12-07 Thread Fastream Technologies
Yes it is indeed faster! Hard to measure but in the old version, during
deletion it used to take n/2 time. n is the number of files which could
reach up to 100K!
Best Regards,

SZ
On Wed, Dec 7, 2011 at 17:57, Arno Garrels  wrote:

> Fastream Technologies wrote:
>
> > It seems to work perfectly now with your advice! See:
> > www.iqproxyserver.comis being served with the beta version using ICS
> > TCacheTree.
>
> Performance increased?
>
> > Thanks a lot,
>
> You are welcome.
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-07 Thread Fastream Technologies
Hello Arno,

It seems to work perfectly now with your advice! See:
www.iqproxyserver.comis being served with the beta version using ICS
TCacheTree.
Thanks a lot,

SZ
On Tue, Dec 6, 2011 at 18:56, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > FLastInsertedNode := CacheNode;  // Fastream
>
> Not a good idea since the reference may change or the node
> be removed.
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-06 Thread Fastream Technologies
I still get occasional AVs in shut down. It is in cacheNode deletion. This
is the code:

bool __fastcall ProxyCache::deleteFileFromDiskCacheWRTIndex(DiskFileCache
*bufferFileCache, bool alreadyMarkedAsToDelete)
{
 if(!bufferFileCache)
  return false;
 if(bufferFileCache->cacheTreeNode)
 {
  bufferFileCache->cacheTreeNode->Data = NULL;
  diskFileCacheIndex->Remove(bufferFileCache->cacheTreeNode); << RANDOM AV
HERE!
  bufferFileCache->cacheTreeNode = NULL;
 }
 cacheCurrentDiskSize -= bufferFileCache->getAndZeroSize();
 if(!bufferFileCache->getWriteLock() && !bufferFileCache->getIsReadLock())
 {
  bufferFileCache->saveHeaderDataToIniFile(true);
  delete bufferFileCache;
  return true;
 }
 else
 {
  if(!alreadyMarkedAsToDelete)
   bufferFileCache->setDeleteFileASAP();
  return false;
 }
}
//--
What I guess is multiple DiskFileCache's are assigned the same cacheNode
and it is being deleted twice but not sure. This TCacheTree is not that
flexible as it seems...
Best Regards,

SZ
On Tue, Dec 6, 2011 at 17:35, Fastream Technologies wrote:

> Hi Arno,
>
> procedure TCacheTree.Insert(
> Key   : String;
> Data  : Pointer;
> Len   : Integer;
> TimeStamp : TDateTime = MinDT;
> Expires   : TDateTime = MinDT;
> UpdateTime: Boolean = True;
> UpdateData: Boolean = True);
> var
> CacheNode,
> ResNode : TCacheNode;
> NewIdx,
> ResIdx : TCacheIdxNode;
> Found : Boolean;
> begin
> CacheNode := TCacheNode.Create(Key, Data, Len);
> FFoundNode := nil;
> ResNode := TCacheNode(SearchAndInsert(CacheNode, Found));
> if not Found then  // Primary key not found = new cache Node added
> begin
> NewIdx := TCacheIdxNode.Create(CacheNode, TimeStamp, Expires);
> ResIdx := TCacheIdxNode(FSecIdxTree.SearchAndInsert(NewIdx,
> Found));
> if not Found then   // New TimeStamp inserted
> CacheNode.FIdxRef := NewIdx
> else begin  // TimeStamp exists, add a duplicate
> if not Assigned(ResIdx.FDups) then
> begin
> ResIdx.FDups := TSecIdxDuplicates.Create;
> ResIdx.FDups.InsertEnd(ResIdx);
> end;
> ResIdx.FDups.InsertEnd(NewIdx);
> CacheNode.FIdxRef := NewIdx;
> end;
> FLastInsertedNode := CacheNode;  // Fastream
> end
> else begin // Primary key found - update data and secondary index
> if UpdateData then
> begin
> // Old data needs to be freed
> TriggerFreeData(ResNode.FData, ResNode.FLen);
> // Update Data
> ResNode.FData := Data;
> ResNode.FLen  := Len;
> end;
> if UpdateTime then
> begin
> //Update TimeStamp (delete and new)
> FSecIdxTree.Remove(ResNode.FIdxRef);
> NewIdx := TCacheIdxNode.Create(ResNode, TimeStamp, Expires);
> ResIdx := TCacheIdxNode(FSecIdxTree.SearchAndInsert(NewIdx,
> Found));
> if not Found then
> ResNode.FIdxRef := NewIdx
> else begin   // Time value exists, create a duplicate
> if not Assigned(ResIdx.FDups) then
> begin
> ResIdx.FDups := TSecIdxDuplicates.Create;
> ResIdx.FDups.InsertEnd(ResIdx);
> end;
> ResIdx.FDups.InsertEnd(NewIdx);
> ResNode.FIdxRef := NewIdx
> end;
> end;
> FLastInsertedNode := ResNode; // Fastream
> // not new
> FreeAndNil(CacheNode);
> end;
> end;
>
> I think this is better to get the last insertion node.
>
> Best Regards,
>
> SZ
> On Tue, Dec 6, 2011 at 11:03, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> >TCacheNode = class(TAvlTreeNode)
>> >private
>> >FKey : String;
>> >FData: Pointer;
>> >FLen : Integer;
>> >FIdxRef  : TCacheIdxNode;
>> >public
>> >constructor Create(Key: String; Data: Pointer; Len: Integer);
>> >destructor  Destroy; override;
>> >propertyKey: String read FKey;
>> >propertyData: Pointer read FData write FData; // could you
>> > add this "write FData"?? Fastream
>> >propertyLen: Integer read FLen;
>> >propertyIdxRef: TCacheIdxNode read FIdxRef;
>> >end;
>>
>> Done.
>>
>> --
>> Arno Garrels
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-06 Thread Fastream Technologies
Hi Arno,

procedure TCacheTree.Insert(
Key   : String;
Data  : Pointer;
Len   : Integer;
TimeStamp : TDateTime = MinDT;
Expires   : TDateTime = MinDT;
UpdateTime: Boolean = True;
UpdateData: Boolean = True);
var
CacheNode,
ResNode : TCacheNode;
NewIdx,
ResIdx : TCacheIdxNode;
Found : Boolean;
begin
CacheNode := TCacheNode.Create(Key, Data, Len);
FFoundNode := nil;
ResNode := TCacheNode(SearchAndInsert(CacheNode, Found));
if not Found then  // Primary key not found = new cache Node added
begin
NewIdx := TCacheIdxNode.Create(CacheNode, TimeStamp, Expires);
ResIdx := TCacheIdxNode(FSecIdxTree.SearchAndInsert(NewIdx, Found));
if not Found then   // New TimeStamp inserted
CacheNode.FIdxRef := NewIdx
else begin  // TimeStamp exists, add a duplicate
if not Assigned(ResIdx.FDups) then
begin
ResIdx.FDups := TSecIdxDuplicates.Create;
ResIdx.FDups.InsertEnd(ResIdx);
end;
ResIdx.FDups.InsertEnd(NewIdx);
CacheNode.FIdxRef := NewIdx;
end;
FLastInsertedNode := CacheNode;  // Fastream
end
else begin // Primary key found - update data and secondary index
if UpdateData then
begin
// Old data needs to be freed
TriggerFreeData(ResNode.FData, ResNode.FLen);
// Update Data
ResNode.FData := Data;
ResNode.FLen  := Len;
end;
if UpdateTime then
begin
//Update TimeStamp (delete and new)
FSecIdxTree.Remove(ResNode.FIdxRef);
NewIdx := TCacheIdxNode.Create(ResNode, TimeStamp, Expires);
ResIdx := TCacheIdxNode(FSecIdxTree.SearchAndInsert(NewIdx,
Found));
if not Found then
ResNode.FIdxRef := NewIdx
else begin   // Time value exists, create a duplicate
if not Assigned(ResIdx.FDups) then
begin
ResIdx.FDups := TSecIdxDuplicates.Create;
ResIdx.FDups.InsertEnd(ResIdx);
end;
ResIdx.FDups.InsertEnd(NewIdx);
ResNode.FIdxRef := NewIdx
end;
end;
FLastInsertedNode := ResNode; // Fastream
// not new
FreeAndNil(CacheNode);
end;
end;

I think this is better to get the last insertion node.

Best Regards,

SZ
On Tue, Dec 6, 2011 at 11:03, Arno Garrels  wrote:

> Fastream Technologies wrote:
> >TCacheNode = class(TAvlTreeNode)
> >private
> >FKey : String;
> >FData: Pointer;
> >FLen : Integer;
> >FIdxRef  : TCacheIdxNode;
> >public
> >constructor Create(Key: String; Data: Pointer; Len: Integer);
> >destructor  Destroy; override;
> >propertyKey: String read FKey;
> >propertyData: Pointer read FData write FData; // could you
> > add this "write FData"?? Fastream
> >propertyLen: Integer read FLen;
> >propertyIdxRef: TCacheIdxNode read FIdxRef;
> >end;
>
> Done.
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
TCacheNode = class(TAvlTreeNode)
private
FKey : String;
FData: Pointer;
FLen : Integer;
FIdxRef  : TCacheIdxNode;
public
constructor Create(Key: String; Data: Pointer; Len: Integer);
destructor  Destroy; override;
propertyKey: String read FKey;
propertyData: Pointer read FData write FData; // could you add
this "write FData"?? Fastream
propertyLen: Integer read FLen;
propertyIdxRef: TCacheIdxNode read FIdxRef;
end;
Best Regards,

SZ
On Mon, Dec 5, 2011 at 18:05, Arno Garrels  wrote:

> Arno Garrels wrote:
> > Fastream Technologies wrote:
> >> FYI, this is the code:
> >>
> >>  RAMFileCacheIndex->OnList = CacheTreeOnListForRAM;
> >>  RAMFileCacheIndex->ListTree();
> >>
> >>  for(int i = RAMFileCacheIndexList->Count - 1; i >= 0; --i)
> >>
> >>
> deleteFileFromRAMCacheWRTIndex((RAMFileCache*)RAMFileCacheIndexList->Items[i],
> >> false); (basically deletes the data
> >>
> >>  RAMFileCacheIndexList->Clear();
> >> ...
> >>
> >> void __fastcall ProxyCache::CacheTreeOnListForRAM(TObject *Sender,
> >> const
> >> String Key, TDateTime TimeStamp, Pointer Data, int Len, TDateTime
> >> Expires,
> >> bool &Cancel)
> >> {
> >> RAMFileCacheIndexList->Add(Data);
> >> }
> >>
> //---
> >
> > If you do not override DoListNode you have to use a TStringList in
> > CacheTreeOnListForRAM and add the key.
> > After ListTree() call RemoveKey() on each list item, and of course
> > you should have OnFreeData assigned and free your Data there, be it
> > objects or other pointers to allocated memory.
>
> And if you choose to free Data explicitly somewhere else you should
> set Data to NULL/nil because otherwise you might attempt to free it a
> second time from OnFreeData, if Data is NULL OnFreeData won't be
> triggered for a node.
>
> --
> Arno Garrels
>
>
> >
> > --
> > Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
Hi again,

I think the problem is in the delete routine:

bool __fastcall ProxyCache::deleteFileFromRAMCacheWRTIndex(RAMFileCache
*bufferFileCache, bool alreadyMarkedAsToDelete)
{
 if(!bufferFileCache)
  return false;
 if(bufferFileCache->cacheTreeNode)
 {
  RAMFileCacheIndex->Remove(bufferFileCache->cacheTreeNode);
  bufferFileCache->cacheTreeNode = NULL;
 }
 cacheCurrentRAMSize -= bufferFileCache->getAndZeroSize(); // first time it
subtracts and then returns 0
 if(!bufferFileCache->getWriteLock() && !bufferFileCache->getIsReadLock())
 {
  delete bufferFileCache;
  return true;
 }
 else
 {
  if(!alreadyMarkedAsToDelete)
   bufferFileCache->setDeleteFileASAP();
  return false;
 }
}
//--

if(bufferFileCache->cacheTreeNode)
{
RAMFileCacheIndex->Remove(bufferFileCache->cacheTreeNode);
bufferFileCache->cacheTreeNode = NULL;
}

When this is entered, the data pointer or the bufferfilecache is NOT
deleted by the tree, right? Also my question is pending, how do I get the
tcachenode of the lastly inserted/updated data??

Best Regards,

SZ

On Mon, Dec 5, 2011 at 17:08, Fastream Technologies wrote:

> Both of these do not work. Must I pass Now() while updating? I am just
> passing the old timestamp!
> Regards,
>
> SZ
> On Mon, Dec 5, 2011 at 16:51, Fastream Technologies wrote:
>
>> Ok, let's go step by step: How do I get the TCacheNode of the last
>> inserted one? First() or Last()?
>> SZ
>> On Mon, Dec 5, 2011 at 16:38, Fastream Technologies 
>> wrote:
>>
>>> FYI, this is the code:
>>>
>>>RAMFileCacheIndex->OnList = CacheTreeOnListForRAM;
>>>   RAMFileCacheIndex->ListTree();
>>>
>>>   for(int i = RAMFileCacheIndexList->Count - 1; i >= 0; --i)
>>>
>>> deleteFileFromRAMCacheWRTIndex((RAMFileCache*)RAMFileCacheIndexList->Items[i],
>>> false); (basically deletes the data
>>>
>>>   RAMFileCacheIndexList->Clear();
>>> ...
>>>
>>> void __fastcall ProxyCache::CacheTreeOnListForRAM(TObject *Sender, const
>>> String Key, TDateTime TimeStamp, Pointer Data, int Len, TDateTime Expires,
>>> bool &Cancel)
>>> {
>>>  RAMFileCacheIndexList->Add(Data);
>>> }
>>>
>>> //---
>>>
>>> Best Regards,
>>>
>>> SZ
>>>  On Mon, Dec 5, 2011 at 16:36, Fastream Technologies >> > wrote:
>>>
>>>> Okay, let's do it one entry per URL. Now the TList recording and
>>>> deleting afterwards in OnList does NOT work. Gives AV. What is the proper
>>>> way? Can you help us with some consultancy? Please let me know privately:
>>>> ga...@fastream.com.
>>>> Best Regards,
>>>>
>>>> SZ
>>>>
>>>> On Mon, Dec 5, 2011 at 13:47, Arno Garrels  wrote:
>>>>
>>>>> Fastream Technologies wrote:
>>>>> > Let me elaborate the issue: In our caches, we may have duplicate
>>>>> > URLs.
>>>>>
>>>>> Then TCacheTree doesn't fit.
>>>>> As I wrote yesterday, the Key (in your case the URL) must be unique,
>>>>> no way around, it is the primary key.
>>>>> However there may exist multiple, different Keys/URLs with the same
>>>>> TimeStamp since it is easily possible to add thousands of items
>>>>> in less than 10 ms with Now() always returning the same value.
>>>>>
>>>>> --
>>>>> Arno Garrels
>>>>> --
>>>>> To unsubscribe or change your settings for TWSocket mailing list
>>>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>>>> Visit our website at http://www.overbyte.be
>>>>>
>>>>
>>>>
>>>
>>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
Both of these do not work. Must I pass Now() while updating? I am just
passing the old timestamp!
Regards,

SZ
On Mon, Dec 5, 2011 at 16:51, Fastream Technologies wrote:

> Ok, let's go step by step: How do I get the TCacheNode of the last
> inserted one? First() or Last()?
> SZ
> On Mon, Dec 5, 2011 at 16:38, Fastream Technologies wrote:
>
>> FYI, this is the code:
>>
>>RAMFileCacheIndex->OnList = CacheTreeOnListForRAM;
>>   RAMFileCacheIndex->ListTree();
>>
>>   for(int i = RAMFileCacheIndexList->Count - 1; i >= 0; --i)
>>
>> deleteFileFromRAMCacheWRTIndex((RAMFileCache*)RAMFileCacheIndexList->Items[i],
>> false); (basically deletes the data
>>
>>   RAMFileCacheIndexList->Clear();
>> ...
>>
>> void __fastcall ProxyCache::CacheTreeOnListForRAM(TObject *Sender, const
>> String Key, TDateTime TimeStamp, Pointer Data, int Len, TDateTime Expires,
>> bool &Cancel)
>> {
>>  RAMFileCacheIndexList->Add(Data);
>> }
>>
>> //---
>>
>> Best Regards,
>>
>> SZ
>>  On Mon, Dec 5, 2011 at 16:36, Fastream Technologies 
>> wrote:
>>
>>> Okay, let's do it one entry per URL. Now the TList recording and
>>> deleting afterwards in OnList does NOT work. Gives AV. What is the proper
>>> way? Can you help us with some consultancy? Please let me know privately:
>>> ga...@fastream.com.
>>> Best Regards,
>>>
>>> SZ
>>>
>>> On Mon, Dec 5, 2011 at 13:47, Arno Garrels  wrote:
>>>
>>>> Fastream Technologies wrote:
>>>> > Let me elaborate the issue: In our caches, we may have duplicate
>>>> > URLs.
>>>>
>>>> Then TCacheTree doesn't fit.
>>>> As I wrote yesterday, the Key (in your case the URL) must be unique,
>>>> no way around, it is the primary key.
>>>> However there may exist multiple, different Keys/URLs with the same
>>>> TimeStamp since it is easily possible to add thousands of items
>>>> in less than 10 ms with Now() always returning the same value.
>>>>
>>>> --
>>>> Arno Garrels
>>>> --
>>>> To unsubscribe or change your settings for TWSocket mailing list
>>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>>> Visit our website at http://www.overbyte.be
>>>>
>>>
>>>
>>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
Ok, let's go step by step: How do I get the TCacheNode of the last inserted
one? First() or Last()?
SZ
On Mon, Dec 5, 2011 at 16:38, Fastream Technologies wrote:

> FYI, this is the code:
>
>   RAMFileCacheIndex->OnList = CacheTreeOnListForRAM;
>   RAMFileCacheIndex->ListTree();
>
>   for(int i = RAMFileCacheIndexList->Count - 1; i >= 0; --i)
>
> deleteFileFromRAMCacheWRTIndex((RAMFileCache*)RAMFileCacheIndexList->Items[i],
> false); (basically deletes the data
>
>   RAMFileCacheIndexList->Clear();
> ...
>
> void __fastcall ProxyCache::CacheTreeOnListForRAM(TObject *Sender, const
> String Key, TDateTime TimeStamp, Pointer Data, int Len, TDateTime Expires,
> bool &Cancel)
> {
>  RAMFileCacheIndexList->Add(Data);
> }
>
> //---
>
> Best Regards,
>
> SZ
>  On Mon, Dec 5, 2011 at 16:36, Fastream Technologies 
> wrote:
>
>> Okay, let's do it one entry per URL. Now the TList recording and deleting
>> afterwards in OnList does NOT work. Gives AV. What is the proper way? Can
>> you help us with some consultancy? Please let me know privately:
>> ga...@fastream.com.
>> Best Regards,
>>
>> SZ
>>
>> On Mon, Dec 5, 2011 at 13:47, Arno Garrels  wrote:
>>
>>> Fastream Technologies wrote:
>>> > Let me elaborate the issue: In our caches, we may have duplicate
>>> > URLs.
>>>
>>> Then TCacheTree doesn't fit.
>>> As I wrote yesterday, the Key (in your case the URL) must be unique,
>>> no way around, it is the primary key.
>>> However there may exist multiple, different Keys/URLs with the same
>>> TimeStamp since it is easily possible to add thousands of items
>>> in less than 10 ms with Now() always returning the same value.
>>>
>>> --
>>> Arno Garrels
>>> --
>>> To unsubscribe or change your settings for TWSocket mailing list
>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>> Visit our website at http://www.overbyte.be
>>>
>>
>>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
FYI, this is the code:

  RAMFileCacheIndex->OnList = CacheTreeOnListForRAM;
  RAMFileCacheIndex->ListTree();

  for(int i = RAMFileCacheIndexList->Count - 1; i >= 0; --i)
   
deleteFileFromRAMCacheWRTIndex((RAMFileCache*)RAMFileCacheIndexList->Items[i],
false); (basically deletes the data

  RAMFileCacheIndexList->Clear();
...

void __fastcall ProxyCache::CacheTreeOnListForRAM(TObject *Sender, const
String Key, TDateTime TimeStamp, Pointer Data, int Len, TDateTime Expires,
bool &Cancel)
{
 RAMFileCacheIndexList->Add(Data);
}
//---

Best Regards,

SZ
On Mon, Dec 5, 2011 at 16:36, Fastream Technologies wrote:

> Okay, let's do it one entry per URL. Now the TList recording and deleting
> afterwards in OnList does NOT work. Gives AV. What is the proper way? Can
> you help us with some consultancy? Please let me know privately:
> ga...@fastream.com.
> Best Regards,
>
> SZ
>
> On Mon, Dec 5, 2011 at 13:47, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > Let me elaborate the issue: In our caches, we may have duplicate
>> > URLs.
>>
>> Then TCacheTree doesn't fit.
>> As I wrote yesterday, the Key (in your case the URL) must be unique,
>> no way around, it is the primary key.
>> However there may exist multiple, different Keys/URLs with the same
>> TimeStamp since it is easily possible to add thousands of items
>> in less than 10 ms with Now() always returning the same value.
>>
>> --
>> Arno Garrels
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
Okay, let's do it one entry per URL. Now the TList recording and deleting
afterwards in OnList does NOT work. Gives AV. What is the proper way? Can
you help us with some consultancy? Please let me know privately:
ga...@fastream.com.
Best Regards,

SZ
On Mon, Dec 5, 2011 at 13:47, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Let me elaborate the issue: In our caches, we may have duplicate
> > URLs.
>
> Then TCacheTree doesn't fit.
> As I wrote yesterday, the Key (in your case the URL) must be unique,
> no way around, it is the primary key.
> However there may exist multiple, different Keys/URLs with the same
> TimeStamp since it is easily possible to add thousands of items
> in less than 10 ms with Now() always returning the same value.
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
Ok but how will I update an existing duplicarte record so that it becomes
Last()??
Best Regards,

SZ
On Mon, Dec 5, 2011 at 13:11, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > On Sun, Dec 4, 2011 at 11:05, Arno Garrels 
> > wrote:
> >
> >> - Original Message -
> >> From: "Fastream Technologies" 
> >> To: "ICS support mailing" 
> >> Sent: Sunday, December 04, 2011 7:16 AM
> >> Subject: Re: [twsocket] Converting a cache to AVL tree
> >>
> >>
> >>> The component I tried to use is TCacheTree. It has a timeout
> >>> argument for each added item. I do not want any timers or any
> >>> timeouts yet liked the component. Is there a way to omit
> >>> expiration. I will use my own code for it.
> >>
> >> TCacheTree doesn't use any timer, it just provides two TDateTime
> >> fields. There are two indices, first is Key of type string, second
> >> is TimeStamp of type TDateTime used to find oldest entries very
> >> fast. It's two linked AVL trees.
> >>
> >> procedure Insert(
> >>Key: String;// Unique key
> >>Data   : Pointer;   // Pointer to data
> >>Len: Integer;   // Optionally data size
> >>TimeStamp  : TDateTime = MinDT; // Second key (dups are allowed
> >> and handled)
> >>Expires: TDateTime = MinDT; // What ever you like
> >>UpdateTime : Boolean = True;// Shall the TDateTime fields be
> >> updated?
> >>UpdateData : Boolean = True);   // Shall Data be updated?
> >>
> >> Use Insert() for both add and update an entry.
> >>
> >>  Node : TCacheNode;
> >> begin
> >>  Node := FCacheTree.FindKey(Key);
> >>  if Node <> nil then
> >>  begin
> >>// Node.IdxRef.TimeStamp // i.e read the TimeStamp
> >>// i.e update TimeStamp and Expires, don't update Data
> >>FCacheTree.Insert(Key, nil, 0, time1, time2, TRUE, FALSE);
> >>  end;
> >>
> >> Oldest() returns oldest entry.
> >> Flush() removes all entries older or same DateTime as passed.
> >>
> >> Hope this helps.
> >>
> >> --
> >> Arno Garrels
> >>
> >>
> >>
> >
> > Critical question:  Node.IdxRef.TimeStamp = updatedDate;
>
> You can't assign a value, property TimeStamp is read-only.
>
> > Would this work? Because we may have duplicates...
>
> Use Insert() as described above to update the TimeStamp value.
> Yes, TimeStamp duplicates are allowed.
>
> --
> Arno Garrels
>
>
> >
> > Regards,
> >
> > SZ
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
Let me elaborate the issue: In our caches, we may have duplicate URLs. How
would one update a timestamp with tcachenode pointer?
Best Regards,

SZ
On Mon, Dec 5, 2011 at 12:47, Fastream Technologies wrote:

> On Sun, Dec 4, 2011 at 11:05, Arno Garrels  wrote:
>
>> - Original Message -
>> From: "Fastream Technologies" 
>> To: "ICS support mailing" 
>> Sent: Sunday, December 04, 2011 7:16 AM
>> Subject: Re: [twsocket] Converting a cache to AVL tree
>>
>>
>> > The component I tried to use is TCacheTree. It has a timeout argument
>> for
>> > each added item. I do not want any timers or any timeouts yet liked the
>> > component. Is there a way to omit expiration. I will use my own code
>> for it.
>>
>> TCacheTree doesn't use any timer, it just provides two TDateTime fields.
>> There are two indices, first is Key of type string, second is TimeStamp
>> of type TDateTime used to find oldest entries very fast. It's two linked
>> AVL trees.
>>
>> procedure Insert(
>>Key: String;// Unique key
>>Data   : Pointer;   // Pointer to data
>>Len: Integer;   // Optionally data size
>>TimeStamp  : TDateTime = MinDT; // Second key (dups are allowed and
>> handled)
>>Expires: TDateTime = MinDT; // What ever you like
>>UpdateTime : Boolean = True;// Shall the TDateTime fields be
>> updated?
>>UpdateData : Boolean = True);   // Shall Data be updated?
>>
>> Use Insert() for both add and update an entry.
>>
>>  Node : TCacheNode;
>> begin
>>  Node := FCacheTree.FindKey(Key);
>>  if Node <> nil then
>>  begin
>>// Node.IdxRef.TimeStamp // i.e read the TimeStamp
>>// i.e update TimeStamp and Expires, don't update Data
>>FCacheTree.Insert(Key, nil, 0, time1, time2, TRUE, FALSE);
>>  end;
>>
>> Oldest() returns oldest entry.
>> Flush() removes all entries older or same DateTime as passed.
>>
>> Hope this helps.
>>
>> --
>> Arno Garrels
>>
>>
>>
>
> Critical question:  Node.IdxRef.TimeStamp = updatedDate;
>
> Would this work? Because we may have duplicates...
>
> Regards,
>
> SZ
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-05 Thread Fastream Technologies
On Sun, Dec 4, 2011 at 11:05, Arno Garrels  wrote:

> - Original Message -
> From: "Fastream Technologies" 
> To: "ICS support mailing" 
> Sent: Sunday, December 04, 2011 7:16 AM
> Subject: Re: [twsocket] Converting a cache to AVL tree
>
>
> > The component I tried to use is TCacheTree. It has a timeout argument for
> > each added item. I do not want any timers or any timeouts yet liked the
> > component. Is there a way to omit expiration. I will use my own code for
> it.
>
> TCacheTree doesn't use any timer, it just provides two TDateTime fields.
> There are two indices, first is Key of type string, second is TimeStamp
> of type TDateTime used to find oldest entries very fast. It's two linked
> AVL trees.
>
> procedure Insert(
>Key: String;// Unique key
>Data   : Pointer;   // Pointer to data
>Len: Integer;   // Optionally data size
>TimeStamp  : TDateTime = MinDT; // Second key (dups are allowed and
> handled)
>Expires: TDateTime = MinDT; // What ever you like
>UpdateTime : Boolean = True;// Shall the TDateTime fields be
> updated?
>UpdateData : Boolean = True);   // Shall Data be updated?
>
> Use Insert() for both add and update an entry.
>
>  Node : TCacheNode;
> begin
>  Node := FCacheTree.FindKey(Key);
>  if Node <> nil then
>  begin
>// Node.IdxRef.TimeStamp // i.e read the TimeStamp
>// i.e update TimeStamp and Expires, don't update Data
>FCacheTree.Insert(Key, nil, 0, time1, time2, TRUE, FALSE);
>  end;
>
> Oldest() returns oldest entry.
> Flush() removes all entries older or same DateTime as passed.
>
> Hope this helps.
>
> --
> Arno Garrels
>
>
>

Critical question:  Node.IdxRef.TimeStamp = updatedDate;

Would this work? Because we may have duplicates...

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
How about us to make a list of pointers in onlist and then remove?
Best Regards,

SZ
On Sun, Dec 4, 2011 at 15:24, Fastream Technologies wrote:

> Arno,
>
> The deletions occur once in a day/week or so, when the end admin user
> clicks a button in GUI. It is not a part of every second cache operation.
> What is the easiest/safest way to delete by iteration?
>
> a. Implement a new TCacheTree with IPv6 AVLPointerTree?
> b. A very slow workaround for the current class (speed is NOT an issue).
> Best Regards,
>
> SZ
> On Sun, Dec 4, 2011 at 14:31, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > Ok but how do I delete with respect to a data->property??
>>
>> One needs one linked tree for each search key, if you
>> have to iterate over a tree in order to find something a list
>> would likely be faster. But if can live with slow deletions
>> maybe you can use TIcsAvlPointerTree rather than TAvlTree to write
>> a new TCacheTree.
>>
>> > We use
>> > regex and string comparison for this! If you can help me with it, I
>> > will appreciate. We can be sponsors for this feature. I think we can
>> > live with OnList way but really need to be able to delete with
>> > respect to data...
>>
>> Sounds like plenty of keys, I'm not sure whether this would be faster
>> with trees.
>>
>> --
>> Arno Garrels
>>
>>
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
Arno,

The deletions occur once in a day/week or so, when the end admin user
clicks a button in GUI. It is not a part of every second cache operation.
What is the easiest/safest way to delete by iteration?

a. Implement a new TCacheTree with IPv6 AVLPointerTree?
b. A very slow workaround for the current class (speed is NOT an issue).
Best Regards,

SZ
On Sun, Dec 4, 2011 at 14:31, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Ok but how do I delete with respect to a data->property??
>
> One needs one linked tree for each search key, if you
> have to iterate over a tree in order to find something a list
> would likely be faster. But if can live with slow deletions
> maybe you can use TIcsAvlPointerTree rather than TAvlTree to write
> a new TCacheTree.
>
> > We use
> > regex and string comparison for this! If you can help me with it, I
> > will appreciate. We can be sponsors for this feature. I think we can
> > live with OnList way but really need to be able to delete with
> > respect to data...
>
> Sounds like plenty of keys, I'm not sure whether this would be faster
> with trees.
>
> --
> Arno Garrels
>
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
Ok but how do I delete with respect to a data->property?? We use regex and
string comparison for this! If you can help me with it, I will appreciate.
We can be sponsors for this feature. I think we can live with OnList way
but really need to be able to delete with respect to data...
Regards,

SZ
On Sun, Dec 4, 2011 at 13:22, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > On Sun, Dec 4, 2011 at 11:40, Arno Garrels 
> > wrote:
> >
> >>  Traversing the tree is only possible with method ListTree
> >> and assigning an OnList event handler.
> >>
> >
> > Could you give an example to traversing for the firstly inserted n
> > elements?
>
> Not possible.
> Also iterating over a tree is much slower than over a list and should
> be avoided if speed matters.
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
Hello Arno,
Can one remove a node in onlist?

Regards,

SubZ
On Sun, Dec 4, 2011 at 13:16, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Do you mean the tree self-destructs nodes and I will be notified of
> > it to delete?
>
> You are notified before the class removes and frees a node, i.e method
> Remove() triggers event OnFreeData and afterwards frees the node. The class
> doesn't own Data but its nodes, so never call method Free of a node
> returned
> by a method.
> However if Data points to some previously allocated memory you are
> responsible to release it.
>
> > Or is it optional?
>
> Yes, more or less it is. If you, for instance, used Data to store
> just an Integer value it's not required to free any memory.
>
>
> Example:
>
> procedure TForm1.CacheFreeData(Sender: TObject; Data: Pointer; Len:
> Integer);
> begin
>FreeMem(Data);
> end;
>
> procedure TForm1.Button1Click(Sender: TObject);
> var
>Node: TCacheNode;
>MyData: Pointer;
> begin
>FCache := TCacheTree.Create;
>try
>FCache.OnFreeData := CacheFreeData;
>GetMem(MyData, 1024);
>FCache.Insert('AKEY', MyData, 0, Now);
>// either
>Node := FCache.FindKey('AKEY');
>if Node <> nil then
>FCache.Remove(Node); // Node no longer valid
>// or
>FCache.RemoveKey('AKEY');
>finally
>FCache.Free;
>end;
> end;
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
Okay, I now see your point, it is not async yet recursive.
Regards,

SZ
On Sun, Dec 4, 2011 at 12:52, Fastream Technologies wrote:

> I do not understand why it is async to traverse a list of nodes in RAM! It
> ruins the program flow very much. Any solution?
> Regards,
>
> SZ
>
> On Sun, Dec 4, 2011 at 12:36, Fastream Technologies wrote:
>
>> On Sun, Dec 4, 2011 at 11:40, Arno Garrels  wrote:
>>
>>>  Traversing the tree is only possible with method ListTree
>>> and assigning an OnList event handler.
>>>
>>
>> Could you give an example to traversing for the firstly inserted n
>> elements?
>>
>> Regards,
>>
>> SZ
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
I do not understand why it is async to traverse a list of nodes in RAM! It
ruins the program flow very much. Any solution?
Regards,

SZ

On Sun, Dec 4, 2011 at 12:36, Fastream Technologies wrote:

> On Sun, Dec 4, 2011 at 11:40, Arno Garrels  wrote:
>
>>  Traversing the tree is only possible with method ListTree
>> and assigning an OnList event handler.
>>
>
> Could you give an example to traversing for the firstly inserted n
> elements?
>
> Regards,
>
> SZ
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
On Sun, Dec 4, 2011 at 11:40, Arno Garrels  wrote:

>  Traversing the tree is only possible with method ListTree
> and assigning an OnList event handler.
>

Could you give an example to traversing for the firstly inserted n elements?

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
Do you mean the tree self-destructs nodes and I will be notified of it to
delete? Or is it optional? Basically here is my destruction function:

bool __fastcall ProxyCache::deleteFileFromRAMCacheWRTIndex(RAMFileCache
*bufferFileCache, bool alreadyMarkedAsToDelete)
{
 if(!bufferFileCache)
  return false;

 if(bufferFileCache->cacheTreeNode)
 {
  RAMFileCacheIndex->Remove(bufferFileCache->cacheTreeNode);
  bufferFileCache->cacheTreeNode = NULL;
 }
 cacheCurrentRAMSize -= bufferFileCache->getAndZeroSize(); // first time it
subtracts and then returns 0
 if(!bufferFileCache->getWriteLock() && !bufferFileCache->getIsReadLock())
 {
  delete bufferFileCache;
  return true;
 }
 else
 {
  if(!alreadyMarkedAsToDelete)
   bufferFileCache->setDeleteFileASAP();
  return false;
 }
}
//--

IOW, in our cache one URL can have just one entry in the tree but many
sockets can be pending to delete. It has to wait until the very last socket
connection to delete the actual object.

Best Regards,

SubZ
On Sun, Dec 4, 2011 at 11:40, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > What about the events? Do I need to use them in TCacheTree?
> > Thanks a lot,
>
> Most important is of course OnFreeData that triggers whenever
> an entry is removed, so simply free Data there if required.
>
> Traversing the tree is only possible with method ListTree
> and assigning an OnList event handler.
>
> --
> Arno Garrels
>
> >
> > SZ
> > On Sun, Dec 4, 2011 at 11:05, Arno Garrels 
> > wrote:
> >
> >> - Original Message -
> >> From: "Fastream Technologies" 
> >> To: "ICS support mailing" 
> >> Sent: Sunday, December 04, 2011 7:16 AM
> >> Subject: Re: [twsocket] Converting a cache to AVL tree
> >>
> >>
> >>> The component I tried to use is TCacheTree. It has a timeout
> >>> argument for each added item. I do not want any timers or any
> >>> timeouts yet liked the component. Is there a way to omit
> >>> expiration. I will use my own code for it.
> >>
> >> TCacheTree doesn't use any timer, it just provides two TDateTime
> >> fields. There are two indices, first is Key of type string, second
> >> is TimeStamp of type TDateTime used to find oldest entries very
> >> fast. It's two linked AVL trees.
> >>
> >> procedure Insert(
> >>Key: String;// Unique key
> >>Data   : Pointer;   // Pointer to data
> >>Len: Integer;   // Optionally data size
> >>TimeStamp  : TDateTime = MinDT; // Second key (dups are allowed
> >> and handled)
> >>Expires: TDateTime = MinDT; // What ever you like
> >>UpdateTime : Boolean = True;// Shall the TDateTime fields be
> >> updated?
> >>UpdateData : Boolean = True);   // Shall Data be updated?
> >>
> >> Use Insert() for both add and update an entry.
> >>
> >>  Node : TCacheNode;
> >> begin
> >>  Node := FCacheTree.FindKey(Key);
> >>  if Node <> nil then
> >>  begin
> >>// Node.IdxRef.TimeStamp // i.e read the TimeStamp
> >>// i.e update TimeStamp and Expires, don't update Data
> >>FCacheTree.Insert(Key, nil, 0, time1, time2, TRUE, FALSE);
> >>  end;
> >>
> >> Oldest() returns oldest entry.
> >> Flush() removes all entries older or same DateTime as passed.
> >>
> >> Hope this helps.
> >>
> >> --
> >> Arno Garrels
> >>
> >>
> >>> Best Regards,
> >>>
> >>> SZ
> >>> On Sat, Dec 3, 2011 at 18:54, Arno Garrels 
> >>> wrote:
> >>>
> >>>> Fastream Technologies wrote:
> >>>>> Hello,
> >>>>>
> >>>>> I wonder if there is an easy way to do this? How does one achieve
> >>>>> no timeout in ICS avl tree?
> >>>>
> >>>> Please be more specific, AFAIR there's no timeout in any ICS AVL
> >>>> tree. BTW: Also have a look at the new TIcsAvlPointerTree and
> >>>> TIcsAvlObjectTree in the IPv6 branch, included in
> >>>> OverbyteIcsAvlTrees.
> >>>>
> >>>> --
> >>>> Arno Garrels
> >>>> --
> >>>> To unsubscribe or change your settings for TWSocket mailing list
> >>>> please goto
> >>>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit
> >>>> our website at http://www.overbyte.be
> >>>>
> >>> --
> >>> To unsubscribe or change your settings for TWSocket mailing list
> >>> please goto
> >>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our
> >>> website at http://www.overbyte.be
> >> --
> >> To unsubscribe or change your settings for TWSocket mailing list
> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> >> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-04 Thread Fastream Technologies
What about the events? Do I need to use them in TCacheTree?
Thanks a lot,

SZ
On Sun, Dec 4, 2011 at 11:05, Arno Garrels  wrote:

> - Original Message -
> From: "Fastream Technologies" 
> To: "ICS support mailing" 
> Sent: Sunday, December 04, 2011 7:16 AM
> Subject: Re: [twsocket] Converting a cache to AVL tree
>
>
> > The component I tried to use is TCacheTree. It has a timeout argument for
> > each added item. I do not want any timers or any timeouts yet liked the
> > component. Is there a way to omit expiration. I will use my own code for
> it.
>
> TCacheTree doesn't use any timer, it just provides two TDateTime fields.
> There are two indices, first is Key of type string, second is TimeStamp
> of type TDateTime used to find oldest entries very fast. It's two linked
> AVL trees.
>
> procedure Insert(
>Key: String;// Unique key
>Data   : Pointer;   // Pointer to data
>Len: Integer;   // Optionally data size
>TimeStamp  : TDateTime = MinDT; // Second key (dups are allowed and
> handled)
>Expires: TDateTime = MinDT; // What ever you like
>UpdateTime : Boolean = True;// Shall the TDateTime fields be
> updated?
>UpdateData : Boolean = True);   // Shall Data be updated?
>
> Use Insert() for both add and update an entry.
>
>  Node : TCacheNode;
> begin
>  Node := FCacheTree.FindKey(Key);
>  if Node <> nil then
>  begin
>// Node.IdxRef.TimeStamp // i.e read the TimeStamp
>// i.e update TimeStamp and Expires, don't update Data
>FCacheTree.Insert(Key, nil, 0, time1, time2, TRUE, FALSE);
>  end;
>
> Oldest() returns oldest entry.
> Flush() removes all entries older or same DateTime as passed.
>
> Hope this helps.
>
> --
> Arno Garrels
>
>
> > Best Regards,
> >
> > SZ
> > On Sat, Dec 3, 2011 at 18:54, Arno Garrels  wrote:
> >
> >> Fastream Technologies wrote:
> >> > Hello,
> >> >
> >> > I wonder if there is an easy way to do this? How does one achieve no
> >> > timeout in ICS avl tree?
> >>
> >> Please be more specific, AFAIR there's no timeout in any ICS AVL tree.
> >> BTW: Also have a look at the new TIcsAvlPointerTree and
> TIcsAvlObjectTree
> >> in the IPv6 branch, included in OverbyteIcsAvlTrees.
> >>
> >> --
> >> Arno Garrels
> >> --
> >> To unsubscribe or change your settings for TWSocket mailing list
> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> >> Visit our website at http://www.overbyte.be
> >>
> > --
> > To unsubscribe or change your settings for TWSocket mailing list
> > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Converting a cache to AVL tree

2011-12-03 Thread Fastream Technologies
The component I tried to use is TCacheTree. It has a timeout argument for
each added item. I do not want any timers or any timeouts yet liked the
component. Is there a way to omit expiration. I will use my own code for it.
Best Regards,

SZ
On Sat, Dec 3, 2011 at 18:54, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > I wonder if there is an easy way to do this? How does one achieve no
> > timeout in ICS avl tree?
>
> Please be more specific, AFAIR there's no timeout in any ICS AVL tree.
> BTW: Also have a look at the new TIcsAvlPointerTree and TIcsAvlObjectTree
> in the IPv6 branch, included in OverbyteIcsAvlTrees.
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Converting a cache to AVL tree

2011-12-03 Thread Fastream Technologies
Hello,

I wonder if there is an easy way to do this? How does one achieve no
timeout in ICS avl tree?
Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] OT: THtmlViewer and Unicode

2011-11-19 Thread Fastream Technologies
Hi,

Try tstringstream as proxy.
Regards,

SZ
On Sat, Nov 19, 2011 at 16:26, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > *Subject:* Re: [twsocket] OT: THtmlViewer and Unicode
> > *From:* "Arno Garrels" 
> > *To:* "ICS support mailing" 
> > *Date:* Sat, 19 Nov 2011 14:41:14 +0100
> >
> > Angus Robertson - Magenta Systems Ltd wrote:
> > > I'm trying to display Unicode POP3 email from TMimeDecodeEx with
> > > THtmlViewer v11, loading from a stream (with images from
> > > TSslHttpCli).
> > That is very likely caused by a bug in TMimeDecode
>
> The same stream displays correctly in Chinese when displayed using
> TTntRichEdit, it's not unicode.
>
> Sorry, the subject was slightly misleading, I've already fixed the main
> issue of loading Unicode streams without BOMs into THtmlViewer.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Restricted ports on the Mac

2011-11-03 Thread Fastream Technologies
Ports < 1024 require admin rights on most OS. Never used Mac OS X but maybe
it has a mechanism similar to UAC(?)
Best Regards,

SZ
On Thu, Nov 3, 2011 at 18:17, Arno Garrels  wrote:

> Hi,
>
> I'm currently porting the TFtpServer to OS X.
> I get error EACCESS on the attempt to bind a socket to port 21 on the Mac,
> higher port numbers work fine.
>
> So I searched the internet and found this:
> "When the address type of the socket identified by the socket_descriptor
> is AF_INET, the thread must have retrieve, insert, delete, and update
> authority to the port specified by the local_address field. When the thread
> does not have this level of authority, an errno of EACCES is returned."
>
> Nice, but does anybody know how to get the required permission?
> I started the app with sudo from the terminal but that didn't work either.
> Firewall is turned off.
>
> --
> Arno Garrels
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Keeping connection open in TSslHttpCli

2011-10-30 Thread Fastream Technologies
Hello,

In our web proxy server, we use pooled ICS web clients and close the
connection/abort when the server THttpConnection is returned to its pool
(when the server socket is closed). I wonder how we can keep the HttpCli
open for more speed. For example what would happen in the scenario below:

- THttpConnection closed/has to return to pool
- THttpCli is open to server
- both ThreadDetach
- Web server shuts down THttpCli connection
- ThreadAttach
- New THttpConnection and the same THttpCli is assigned
- ThreadDetach
- ThreadAttach
- GetAsync
- ?
Would it raise an exception or detect the session is ended?

Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HttpServer and Server-push?

2011-10-23 Thread Fastream Technologies
Why don't you announce it on your web site and this list with an
announcement?
Best Regards,

SZ
On Sat, Oct 22, 2011 at 17:02, Francois PIETTE wrote:

>   I think we all need SPDY support:
>>>
 http://en.wikipedia.org/wiki/**SPDY 

>>>
>  Interesting. Why don't you start the development ?
>>> Using TSSLWSocket should be OK for that purpose.
>>>
>>
>  Unfortunately I do not have that much time. Why don't we collect some
>> donation from members for some dedicated coder to implement this just as
>> we
>> did for ICS-SSL? Fastream can donate $600 to it for client and server.
>>
>
> OK, let's see how many peoples are willing to contribute for how much
> money.
> This is how ICS-SSL has started...
>
>
> --
> francois.pie...@overbyte.be
> The author of the freeware multi-tier middleware MidWare
> The author of the freeware Internet Component Suite (ICS)
> http://www.overbyte.be
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto 
> http://lists.elists.org/cgi-**bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HttpServer and Server-push?

2011-10-22 Thread Fastream Technologies
I hope they -especially MS- won't come up with an alternative "standard"!
Best Regards,

SZ
On Sat, Oct 22, 2011 at 16:23, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > > I think we all need SPDY support:
> > > http://en.wikipedia.org/wiki/SPDY
> >
> > Interesting. Why don't you start the development ?
>
> Except that it not supported by Internet Explorer or official Firefox
> releases.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HttpServer and Server-push?

2011-10-22 Thread Fastream Technologies
Unfortunately I do not have that much time. Why don't we collect some
donation from members for some dedicated coder to implement this just as we
did for ICS-SSL? Fastream can donate $600 to it for client and server.
Best Regards,

SubZero
On Sat, Oct 22, 2011 at 14:51, Francois PIETTE wrote:

>
>  I think we all need SPDY support:
>> http://en.wikipedia.org/wiki/**SPDY 
>>
>
> Interesting. Why don't you start the development ? Using TSSLWSocket should
> be OK for that purpose.
>
>
> --
> francois.pie...@overbyte.be
> The author of the freeware multi-tier middleware MidWare
> The author of the freeware Internet Component Suite (ICS)
> http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto 
> http://lists.elists.org/cgi-**bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HttpServer and Server-push?

2011-10-22 Thread Fastream Technologies
I think we all need SPDY support:

http://en.wikipedia.org/wiki/SPDY
http://www.readwriteweb.com/archives/spdy_google_wants_to_speed_up_the_web.php
Best Regards,

SZ



On Fri, Oct 21, 2011 at 21:18, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I presume there is another way to get to the posted data apart from
> > the method demonstrated in the webserver demo?
>
> I have updated the web server demo with a new page delayed.html which is
> sent after a 10 second delay using a timer, as I previously explained you
> need to use.  This is actually GET, but POST is no different, you just
> read the passed parameters differently.
>
> This is not exactly server push, since there are no formal standards for
> such a thing, without client side support.  But the concept is the same,
> you just keep the timer repeating to send data regularly.
>
> But you can not send a complete HTML page, at least to my knowledge,
> which is why a real server push example would need client side code to
> expect updates, or an IFrame or something horrible like that, and I
> really don't have the time or inclination to do any of that.
>
> If you have a specific example of what you are trying to achieve,
> including actual HTML, we may be able to help further, once you've tried
> this.
>
> The new demo is in SVN now, and the nightly zip will be available after
> midnight.
>
> Angus
>
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL session closed with 10053

2011-10-17 Thread Fastream Technologies
Use HttpCli.SslContext := TSslContext.Create(nil);
Best Regards,

SubZero
On Mon, Oct 17, 2011 at 16:06, Wilfried Mestdagh wrote:

> Ok thx SZ :)
>
>   FSslContext := TSslContext.Create(nil);
>   HttpCli := THttpCli.Create(nil);
>
> Where and to what do I assign FSslContext to THttpCli ?
>
> --
> mvg, Wilfried
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL session closed with 10053

2011-10-17 Thread Fastream Technologies
Overbyteicswsocket.pas. ;-)
Regards,

SubZero
On Mon, Oct 17, 2011 at 15:23, Wilfried Mestdagh wrote:

> Hello SZ,
>
> Stupid question: in which unit is TSSlContext declared? I'm pulling my hair
> :(
>
> --
> mvg, Wilfried
> http://www.mestdagh.biz
> http://www.comfortsoftware.be
> http://www.expertsoftware.be
>
>
> > -Oorspronkelijk bericht-
> > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> > Namens Fastream Technologies
> > Verzonden: maandag 17 oktober 2011 13:56
> > Aan: ICS support mailing
> > Onderwerp: Re: [twsocket] SSL session closed with 10053
> >
> > Hello Wilfried,
> >
> > You create one TSslContext per SSL certificate your server has and you
> > need
> > to assign one of it to each ICS SSL instance. It is useful in sharing
> > SSL
> > context objects accross many SSL client/servers in a thread.
> > Best Regards,
> >
> > SZ
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL session closed with 10053

2011-10-17 Thread Fastream Technologies
Hello Wilfried,

You create one TSslContext per SSL certificate your server has and you need
to assign one of it to each ICS SSL instance. It is useful in sharing SSL
context objects accross many SSL client/servers in a thread.
Best Regards,

SZ
On Mon, Oct 17, 2011 at 14:51, Wilfried Mestdagh wrote:

> Hi Arno,
>
> Thank you. You put me on a tracé. I put a breakpunt over there, it is not
> the FSslEnable, but FSslContext is NIL so exeption is raised and eaten
> somewhere.
>
> Now my question: What is SSLContext and what should I do with it?
>
> procedure TCustomSslWSocket.StartSslHandshake;
> begin
> {$IFNDEF NO_DEBUG_LOG}
>if CheckLogOptions(loSslInfo) then  { V5.21 }
> DebugLog(loSslInfo, IntToHex(Integer(Self), 8) +
>  ' StartSslHandshake ' + IntToStr(FHSocket));
> {$ENDIF}
>if not FSslEnable then
> Exit;
>if not Assigned(FSslContext) then
>raise Exception.Create('SSL requires a context object'); <-- Here
> Exception
>
> --
> mvg, Wilfried
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] Can this be made?

2011-10-16 Thread Fastream Technologies
Hello,
On Sun, Oct 16, 2011 at 20:27, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I wonder if we could write the data directly to TWSocket bufferlist
> > instead of FDocBuf in THttpServer so that there is no longer double
> > (and in the case of SSL triple) copying.
>
> I'm currently looking at THttpServer performance improvements, I doubled
> the speed on Friday by increasing buffers sizes in the client, but plan
> to make the buffer size dynamic based on the size of the file being sent,
> since there are often lots of small files.
>
> Currently the server defaults to reading 1,460 bytes at a time from the
> stream, which seems appropriate for dial-up modems 10 years ago.
>
> Angus
>
>
>

We have made some ICS web server speed improvements too. Together with RAM
cache and keep-alive, it could reply 7700 requests/sec for a 1KB file! The
good thing with proxy servers is that it does not matter if it is a txt or a
php file. 1460 bytes is the Ethernet frame payload size. We have made some
buffering in cache reads so that it now reads 16-32-64KB and pumps in 1460
bytes each time, reducing cache critical section wait time.

What I want to know is we already have the cache memory stream which we read
from and there is multiple copying of data as TMemoryStream->FDocBuf->ICS
internal buffer->Winsock. If only we cıould remove the first part and copy
directly to ICS, it will be faster.

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

[twsocket] Can this be made?

2011-10-16 Thread Fastream Technologies
Hello,

I wonder if we could write the data directly to TWSocket bufferlist instead
of FDocBuf in THttpServer so that there is no longer double (and in the case
of SSL triple) copying. We already have a cache TMemoryStream and need as
much speed as it gets.
Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS and FireMonkey

2011-10-12 Thread Fastream Technologies
I wonder what is the EXE size?
Best Regards,

SZ
On Wed, Oct 12, 2011 at 21:58, Francois PIETTE wrote:

> Interesting screenshot:
>> http://www.bilder-space.de/**show_img.php?img=955c9e-**
>> 1318435341.png&size=original
>>
>
> Great !
>
> --
> francois.pie...@overbyte.be
> The author of the freeware multi-tier middleware MidWare
> The author of the freeware Internet Component Suite (ICS)
> http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto 
> http://lists.elists.org/cgi-**bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Strange Service/SSL bug that does not happen on GUIproject

2011-10-11 Thread Fastream Technologies
I found the issue. The TrustedCABundle.pem was in relative path to process
folder. In services this is not working as the current path is not the path
of the exe!!
Best Regards,

SZ
On Wed, Oct 12, 2011 at 08:36, Fastream Technologies wrote:

> No error message. The background exception handler catches it silently.
> Regards,
>
> SZ
> On Wed, Oct 12, 2011 at 08:07, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > Hello,
>> >
>> > I am trying to run our tsslhttpcli service against _any_ SSL web site
>> > such as https://encrypted.google.com and it raises an exception in
>> > handshake.
>>
>> And the exception error message is..?
>>
>> --
>> Arno Garrels
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Strange Service/SSL bug that does not happen on GUIproject

2011-10-11 Thread Fastream Technologies
No error message. The background exception handler catches it silently.
Regards,

SZ
On Wed, Oct 12, 2011 at 08:07, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > I am trying to run our tsslhttpcli service against _any_ SSL web site
> > such as https://encrypted.google.com and it raises an exception in
> > handshake.
>
> And the exception error message is..?
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Strange Service/SSL bug that does not happen on GUI project

2011-10-11 Thread Fastream Technologies
Hello,

I am trying to run our tsslhttpcli service against _any_ SSL web site such
as https://encrypted.google.com and it raises an exception in handshake. The
same code with a GUI debug project works fine. It's been two days and
customers are complaining. Any ideas?
Best Regards,

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Cannot get TSslHttpCli to work with proxy for HTTPSpages

2011-10-10 Thread Fastream Technologies
Hello Arno,

What I meant with full duplex is in SSL for instance being tunnelled, you
cannot know which direction is data being pumped at a given time. I overcame
this problem with a timer and bi-directional pump.

Regards,

SZ

On Sun, Oct 9, 2011 at 21:42, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello again,
> >
> > I have found the issue. It is in the TCP proxy we have for HTTPS
> > tunnel.
>
> Thanks, good to know.
>
> > What should be the algorithm for a full duplex TCP tunnel?
>
> Not sure what you mean by "full duplex tunnel".
>
> > I tried
> > pausing/resuming for not having too much buffering but [..]
>
> That's actually the way to control send buffer grow.
>
> --
> Arno Garrels
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Cannot get TSslHttpCli to work with proxy for HTTPS pages

2011-10-09 Thread Fastream Technologies
Hello again,

I have found the issue. It is in the TCP proxy we have for HTTPS tunnel.
What should be the algorithm for a full duplex TCP tunnel? I tried
pausing/resuming for not having too much buffering but it seems there is a
bug

Best Regards,

SZ
On Sun, Oct 9, 2011 at 12:25, Fastream Technologies wrote:

> Hello Arno,
>
> Did you test with _my_ defines:
>
> NO_STRICT;NOFORMS;NO_DEBUG_LOG;USE_SSL;SECURITY_WIN32;NO_ADV_MT;NO_ADVANCED_HTTP_CLIENT_FEATURES
>
> Please tell me your IP number to add to our proxy server firewall which
> works perfectly with IE, FF and Chrome.
> Best Regards,
>
> SZ
>
> -- Forwarded message --
> From: Arno Garrels 
> Date: Sun, Oct 9, 2011 at 12:08
> Subject: Re: [twsocket] Cannot get TSslHttpCli to work with proxy for HTTPS
> pages
> To: ICS support mailing 
>
>
> Fastream Technologies wrote:
> > Hello,
> >
> > I have a working proxy server which I want TSslHttpCli to connect via
> > CONNECT and then connect via HTTPS in tunnel. It corrupts the FPath
> > such that there is now two domains and two ports in URL sent to web
> > server. I can reproduce this with ICS demo too. I can provide access
> > to my proxy server if you can tell me your IPs.
>
> I cannot reproduce, however I found another little bug with squid proxy
> and checked in the change I suggested last week.
>
> Log:  - Clear FResponseVer after relocations when the connection was
> closed.
> This ensures that ProxyConnection keep-alive is set on proxy-reconnects
> after relocation with HTTPS as well.
> - Made a change in GetHeaderLineNext to fix a bug with 401 and 407
> responses when no content-length header was present (body was parsed as
> header, thanks to Fastream for reporting).
>
> --
> Arno Garrels
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Cannot get TSslHttpCli to work with proxy for HTTPS pages

2011-10-08 Thread Fastream Technologies
Hello,

I have a working proxy server which I want TSslHttpCli to connect via
CONNECT and then connect via HTTPS in tunnel. It corrupts the FPath such
that there is now two domains and two ports in URL sent to web server. I can
reproduce this with ICS demo too. I can provide access to my proxy server if
you can tell me your IPs.
Best Regards,

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTP SSL Server vs p7b certificate's format

2011-10-07 Thread Fastream Technologies
Private keys are created during CSR (Certificate Signing Request) creation.
He who ordered the cert should have it.
Best Regards,

Subzero
On Fri, Oct 7, 2011 at 17:43, ROQUES Guillaume
wrote:

> So as my customer bought a wildcard certificate, it must include a private
> key or do I need to generate one ?
>
> Actually, the problem comes from me or the customer ?
>
>
> Gratefully,
>
> Guillaume ROQUES
> 
>
> Le 20:59, Arno Garrels a écrit :
>
>> ROQUES Guillaume wrote:
>>
>>  And ICS logger says :
>>>
 15:57:49:896 InitCtx>  OpenSSL version: OpenSSL 0.9.8h 28 May 2008
 15:57:49:897 error:0906D06C:PEM routines:PEM_read_bio:no start line
 error:140B0009:SSL routines:SSL_CTX_use_**PrivateKey_file:PEM lib

>>> So I checked MyCertificate.pem and I've got 3 blocks :
>>>
>> Without a private key it doesn't work. InitContext raises an exeption
>> in such case.
>>
>> The private key has to be converted to PEM format as well, preferably
>> to a separate PEM file in your case and property SslPrivKeyFile should
>> point to it.
>>
>> BTW: If you would not eat exceptions you would have got that error
>> message sooner and easier.
>>
>>  --
>
> To unsubscribe or change your settings for TWSocket mailing list
> please goto 
> http://lists.elists.org/cgi-**bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

[twsocket] Sponsorship inquiry for TSslHttpCli

2011-10-06 Thread Fastream Technologies
Hello,

We use the TSslHttpCli for our secure web reverse proxy. When SSL is also
enabled on web server, in order for it to work with DNS pointing the
www.domain.com to reverse proxy and the web server running on the same
certificate, end users define their web servers with numeric IPs. However
when they do so, this time the SSL verification between the proxy and web
server fails as TSslHttpCli sends no SSL domain name since the web server IP
is numeric! To overcome this, we have told customers to use hosts file
setting on proxy machine (as a workaround) which is perceived as a low
quality solution... ;-(

We want to sponsor for a property in this component as SslDomainName.
Actually I think the SNI code should have included a similar feature but I
am unable to find anything similar in demos. We can pay for time or for
deliverables.

Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-05 Thread Fastream Technologies
Actually I tested with our Linksys routers admin page...
On Wed, Oct 5, 2011 at 09:37, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > To elaborate: You need a page with no content-length and no chunked
> > encoding that returns 401 to see it.
>
> And the URL of that example page is what?
>
> Or are you expecting someone to create a badly formatted example page for
> you?
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Fastream Technologies
To elaborate: You need a page with no content-length and no chunked encoding
that returns 401 to see it.
Best Regards,

SZ
On Wed, Oct 5, 2011 at 07:07, Fastream Technologies wrote:

> Here is a screenshot of the issue as a picture is worth a thousand words:
> http://www.fastream.com/ics/ICSHTTPCLI.png
> Regards,
>
> SZ
> On Wed, Oct 5, 2011 at 06:26, Fastream Technologies wrote:
>
>> Dear Arno,
>>
>> The new problem happens with GET on pages with no content-length and no
>> chunked-encoding. This bug had once been there, and then was fixed. Now it
>> happens again. Please try against such a page with Httptst demo and you will
>> see that the OnDocData is never called but instead all the data is assumed
>> as header lines. I am using v7.18.
>> Thanks for your efforts,
>>
>> SubZero
>> On Tue, Oct 4, 2011 at 20:11, Arno Garrels  wrote:
>>
>>> Fastream Technologies wrote:
>>> > We had actually paid for HttpCli bug fixes to Arno. I hope he will
>>> > show up and fix it soon. We do not use content coding so I do not
>>> > think Yuri's fix would work.
>>>
>>> I made your test case working by a fix of chunked decoding.
>>> So what actually is the problem now?
>>> Without a simple test case I won't look at it.
>>>
>>> --
>>> Arno Garrels
>>>
>>>
>>> >
>>> > BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
>>> > Regards,
>>> >
>>> > SZ
>>> >
>>> > On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
>>> > an...@magsys.co.uk> wrote:
>>> >
>>> >>> I wrote about a similar bug, but got no response from the
>>> >>> administration.
>>> >>
>>> >> It is on my list of things to investigate this week, but paying work
>>> >> has to come before minor bug fixes like this.
>>> >>
>>> >> Angus
>>> >>
>>> >> --
>>> >> To unsubscribe or change your settings for TWSocket mailing list
>>> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>> >> Visit our website at http://www.overbyte.be
>>> --
>>> To unsubscribe or change your settings for TWSocket mailing list
>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>> Visit our website at http://www.overbyte.be
>>>
>>
>>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Fastream Technologies
Here is a screenshot of the issue as a picture is worth a thousand words:
http://www.fastream.com/ics/ICSHTTPCLI.png
Regards,

SZ
On Wed, Oct 5, 2011 at 06:26, Fastream Technologies wrote:

> Dear Arno,
>
> The new problem happens with GET on pages with no content-length and no
> chunked-encoding. This bug had once been there, and then was fixed. Now it
> happens again. Please try against such a page with Httptst demo and you will
> see that the OnDocData is never called but instead all the data is assumed
> as header lines. I am using v7.18.
> Thanks for your efforts,
>
> SubZero
> On Tue, Oct 4, 2011 at 20:11, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > We had actually paid for HttpCli bug fixes to Arno. I hope he will
>> > show up and fix it soon. We do not use content coding so I do not
>> > think Yuri's fix would work.
>>
>> I made your test case working by a fix of chunked decoding.
>> So what actually is the problem now?
>> Without a simple test case I won't look at it.
>>
>> --
>> Arno Garrels
>>
>>
>> >
>> > BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
>> > Regards,
>> >
>> > SZ
>> >
>> > On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
>> > an...@magsys.co.uk> wrote:
>> >
>> >>> I wrote about a similar bug, but got no response from the
>> >>> administration.
>> >>
>> >> It is on my list of things to investigate this week, but paying work
>> >> has to come before minor bug fixes like this.
>> >>
>> >> Angus
>> >>
>> >> --
>> >> To unsubscribe or change your settings for TWSocket mailing list
>> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> >> Visit our website at http://www.overbyte.be
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Fastream Technologies
Dear Arno,

The new problem happens with GET on pages with no content-length and no
chunked-encoding. This bug had once been there, and then was fixed. Now it
happens again. Please try against such a page with Httptst demo and you will
see that the OnDocData is never called but instead all the data is assumed
as header lines. I am using v7.18.
Thanks for your efforts,

SubZero
On Tue, Oct 4, 2011 at 20:11, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > We had actually paid for HttpCli bug fixes to Arno. I hope he will
> > show up and fix it soon. We do not use content coding so I do not
> > think Yuri's fix would work.
>
> I made your test case working by a fix of chunked decoding.
> So what actually is the problem now?
> Without a simple test case I won't look at it.
>
> --
> Arno Garrels
>
>
> >
> > BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
> > Regards,
> >
> > SZ
> >
> > On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
> > an...@magsys.co.uk> wrote:
> >
> >>> I wrote about a similar bug, but got no response from the
> >>> administration.
> >>
> >> It is on my list of things to investigate this week, but paying work
> >> has to come before minor bug fixes like this.
> >>
> >> Angus
> >>
> >> --
> >> To unsubscribe or change your settings for TWSocket mailing list
> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> >> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Fastream Technologies
We had actually paid for HttpCli bug fixes to Arno. I hope he will show up
and fix it soon. We do not use content coding so I do not think Yuri's fix
would work.

BTW Yuri, your code lacks the latest 7.18 bug fix by us (me and Arno).
Regards,

SZ

On Tue, Oct 4, 2011 at 19:24, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I wrote about a similar bug, but got no response from the
> > administration.
>
> It is on my list of things to investigate this week, but paying work has
> to come before minor bug fixes like this.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Fastream Technologies
Hello all,

Data is pumped in the header in this case. I mean there is no ondocdata
called!

The conditionals I use are,
NO_STRICT;NOFORMS;NO_DEBUG_LOG;USE_SSL;SECURITY_WIN32;NO_ADV_MT;NO_ADVANCED_HTTP_CLIENT_FEATURES

Hope somebody could help.

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Clean Windows installation, BCBXE2, on our web server getting FD_CLOSE during client connection establishment.

2011-10-01 Thread Fastream Technologies
Yes the CBXE2 bug is fixed now. I will post some code after trying a few
more things.
Best Regards,

SZ
On Sat, Oct 1, 2011 at 20:11, Arno Garrels  wrote:

> > Any idea?
> I've no idea, sorry.
> It would be interesting to know whether UPD1 fixes your QC #98840,
> so far I haven't had time to check it.
>
> I don't believe that anybody will flame you just for posting some c++ code.
>
> --
> Arno Garrels
>
>
> Fastream Technologies wrote:
> > Any idea? I can post code but people here once flamed me for posting
> > C++ code even though ICS supports C++...
> > Regards,
> >
> > SubZero
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Clean Windows installation, BCBXE2, on our web server getting FD_CLOSE during client connection establishment.

2011-10-01 Thread Fastream Technologies
Any idea? I can post code but people here once flamed me for posting C++
code even though ICS supports C++...
Regards,

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] How do they accomplish Mbps of speed on single socket between co

2011-09-30 Thread Fastream Technologies
Yes client/server are on the same machine. This is reverse proxy LB test
with RAM cache.
Best Regards,

SZ
On Fri, Sep 30, 2011 at 14:51, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I am not confusing bytes with bits! Our web stress tester displays
> > stats in BYTEs: www.fastream.com/webstresstester.php
>
> So how fast are the LAN ports on your PC and server?
>
> Or are you simply testing both on the same PC and ignoring a LAN
> completely, which is hardly a real life user test.
>
> And if you are able to read and write files at 650 Mbytes/sec, that's
> faster than any disk I've seen.   Any stress testing that does not read
> or write files is fantasy.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] How do they accomplish Mbps of speed on single socket between co

2011-09-30 Thread Fastream Technologies
Hello,

I am not confusing bytes with bits! Our web stress tester displays stats in
BYTEs: www.fastream.com/webstresstester.php

Regards,

SZ
On Fri, Sep 30, 2011 at 09:44, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > *Subject:* Re: [twsocket] How do they accomplish Mbps of speed on
> > With your advice, local-to-local I saw speeds of 650MByte per
> > sec
>
> Which will only be possible on a 10GB LAN which is very rare, you are
> confusing bytes per second with bits per second.  The best speed on a
> standard 1GB LAN is about 100 Mbyte/sec.
>
> A larger TCP buffer size does improve slow as well as maximum speeds,
> due to less delay waiting for ACKs.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] How do they accomplish Mbps of speed on single socket between co

2011-09-29 Thread Fastream Technologies
Hello,

With your advice, local-to-local I saw speeds of 650MByte per sec--10%
faster than IIS! I have an idea for futher speed:

procedure TIcsBufferHandler.Lock;
begin
EnterCriticalSection(FCritSect);
end;

{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*}
procedure TIcsBufferHandler.UnLock;
begin
LeaveCriticalSection(FCritSect);
end;
We use NO_ADV_MT. Shouldn't these be IFNDEF'ed for it?
Best Regards,

SZ
On Thu, Sep 29, 2011 at 18:04, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I mean I have on my server in Canada IIS and our ICS server. When I
> > download from there with high latency and high bandwidth,
>
> On the same physical hardware with different ports or IPs?
>
> IIS runs as a kernel driver, so is more efficient than Windows
> applications.
>
> >I had read that I need to increase window size. I  have
> > made it 128KB and now the download speed is 180KB/s.
>
> So it's now much slower?
>
> The difference could be down to TCP settings, with slow latency the round
> trip time to acknowledge packets causes the speed to slow down, so
> allowing TCP to send more packets without waiting for ACK packets speeds
> things up.
>
> On my WAN, I've tested downloads from the ICS FTP server with the ICS FTP
> client at almost 500Mbits/s, and I can download from (decent) low latency
> (10ms) public FTP servers at over 50Mbits/s which is my maximum cable
> modem speed.  That's with 64K TCP buffers.
>
> But I can not test the ICS web server at those speeds, I have an old
> firewall in front of my public server which limits the maximum speed to
> about 15Mbits/s.
>
> IIS7 - http://www.magsys.co.uk/download/testing/speed50meg.zip
>
> ICS v7 - http://www.telecom-tariffs.co.uk/testing/speed50meg.zip
>
> ICS is slower but is still using the default 8K TCP sockets, not got
> around to increasing the TCP buffer size yet, do most testing with FTP.
>
> Angus
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] How do they accomplish Mbps of speed on single socket between contin

2011-09-29 Thread Fastream Technologies
I mean I have on my server in Canada IIS and our ICS server. When I download
from there with high latency and high bandwidth, ICS was slow. Before
reading your post I had read that I need to increase window size. I have
made it 128KB and now the download speed is 180KB/s. Let's say I make this
1MB, would Windows go out of non-paged RAM? That is my concern...

Regards,

SZ


On Thu, Sep 29, 2011 at 15:49, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

>
> > From Canada to here, I can download at speed of 10Mbps with IIS and
> > with ICS only 500kbps.
>
> IIS is a web server, it does not download anything.
>
> TCP/IP download speed depends upon TCP buffer size, what does
> SocketRcvBufSize say?
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] How do they accomplish Mbps of speed on single socket between continents?

2011-09-29 Thread Fastream Technologies
Hello,

>From Canada to here, I can download at speed of 10Mbps with IIS and with ICS
only 500kbps. With small files (up to 100KB) the speed is the same. When the
file is large IIS makes the difference. Ping time to the server is 170ms.
Any idea?
Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] ICS SSL client certificate support

2011-09-22 Thread Fastream Technologies
Hello,

I wonder if client SSL certificates are supported in ICS web server.
Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-13 Thread Fastream Technologies
98840.
Regards,

SZ
On Tue, Sep 13, 2011 at 22:53, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > I have just reported the BCBXE2 "Delphi personality missing" bug in
> > QC... ;-(
>
> I cannot find it, do have the QC number?
>
> > Regards,
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
I have just reported the BCBXE2 "Delphi personality missing" bug in QC...
;-(
Regards,

SZ
On Tue, Sep 13, 2011 at 08:29, Fastream Technologies wrote:

> And trying to install BCBXE Update 1 also fails with error code 2705 :-(((.
>
> SZ
> On Tue, Sep 13, 2011 at 08:05, Fastream Technologies 
> wrote:
>
>> After installing BCBXE (XE1) now, I get the below error:
>>
>> [BCC32 Error] OverbyteIcsUtils.hpp(62): E2450 Undefined structure
>> 'DECLSPEC_DRECORD'
>>   Full parser context
>> IQEngineCommonUnit.cpp(8): #include IQEngineCommonUnit.h
>> IQEngineCommonUnit.h(7): #include
>> ..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverByteIcsHttpSrv.hpp
>> OverByteIcsHttpSrv.hpp(20): #include
>> ..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverbyteIcsSSLEAY.hpp
>> OverbyteIcsSSLEAY.hpp(19): #include
>> ..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverbyteIcsUtils.hpp
>> OverbyteIcsUtils.hpp(28): namespace Overbyteicsutils
>> I know that this structure/const is XE+ but what include should I make for
>> it to compile?
>>
>> Best Regards,
>>
>> SZ
>>
>> On Mon, Sep 12, 2011 at 19:29, Arno Garrels  wrote:
>>
>>> Fastream Technologies wrote:
>>> > Seems like a BCBXE2 bug:
>>> > https://forums.embarcadero.com/thread.jspa?messageID=389837
>>> > Too bad!
>>>
>>> Sad, is that issue reported in QC yet?
>>> If you want to get it fixed there has to be a QC report.
>>> Provide a very simple test case and/or clear steps to reproduce,
>>> then there's a good chance to get it fixed in UPD1.
>>>
>>> BTW: The EMBT servers are up again.
>>>
>>> --
>>> Arno Garrels
>>>
>>>
>>> --
>>> To unsubscribe or change your settings for TWSocket mailing list
>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>> Visit our website at http://www.overbyte.be
>>>
>>
>>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
And trying to install BCBXE Update 1 also fails with error code 2705 :-(((.
SZ
On Tue, Sep 13, 2011 at 08:05, Fastream Technologies wrote:

> After installing BCBXE (XE1) now, I get the below error:
>
> [BCC32 Error] OverbyteIcsUtils.hpp(62): E2450 Undefined structure
> 'DECLSPEC_DRECORD'
>   Full parser context
> IQEngineCommonUnit.cpp(8): #include IQEngineCommonUnit.h
> IQEngineCommonUnit.h(7): #include
> ..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverByteIcsHttpSrv.hpp
> OverByteIcsHttpSrv.hpp(20): #include
> ..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverbyteIcsSSLEAY.hpp
> OverbyteIcsSSLEAY.hpp(19): #include
> ..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverbyteIcsUtils.hpp
> OverbyteIcsUtils.hpp(28): namespace Overbyteicsutils
> I know that this structure/const is XE+ but what include should I make for
> it to compile?
>
> Best Regards,
>
> SZ
>
> On Mon, Sep 12, 2011 at 19:29, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > Seems like a BCBXE2 bug:
>> > https://forums.embarcadero.com/thread.jspa?messageID=389837
>> > Too bad!
>>
>> Sad, is that issue reported in QC yet?
>> If you want to get it fixed there has to be a QC report.
>> Provide a very simple test case and/or clear steps to reproduce,
>> then there's a good chance to get it fixed in UPD1.
>>
>> BTW: The EMBT servers are up again.
>>
>> --
>> Arno Garrels
>>
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
After installing BCBXE (XE1) now, I get the below error:

[BCC32 Error] OverbyteIcsUtils.hpp(62): E2450 Undefined structure
'DECLSPEC_DRECORD'
  Full parser context
IQEngineCommonUnit.cpp(8): #include IQEngineCommonUnit.h
IQEngineCommonUnit.h(7): #include
..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverByteIcsHttpSrv.hpp
OverByteIcsHttpSrv.hpp(20): #include
..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverbyteIcsSSLEAY.hpp
OverbyteIcsSSLEAY.hpp(19): #include
..\..\Components\ICSv7BCB2010\Delphi\Vc32\OverbyteIcsUtils.hpp
OverbyteIcsUtils.hpp(28): namespace Overbyteicsutils
I know that this structure/const is XE+ but what include should I make for
it to compile?

Best Regards,

SZ

On Mon, Sep 12, 2011 at 19:29, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Seems like a BCBXE2 bug:
> > https://forums.embarcadero.com/thread.jspa?messageID=389837
> > Too bad!
>
> Sad, is that issue reported in QC yet?
> If you want to get it fixed there has to be a QC report.
> Provide a very simple test case and/or clear steps to reproduce,
> then there's a good chance to get it fixed in UPD1.
>
> BTW: The EMBT servers are up again.
>
> --
> Arno Garrels
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
I tried to post my reply but unfortunately their servers are overloaded
today...

Regards,

SZ
On Mon, Sep 12, 2011 at 18:30, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > Seems like a BCBXE2 bug:
> > https://forums.embarcadero.com/thread.jspa?messageID=389837
> > Too bad!
>
> Make sure you comment in that thread and report it in QC as well so
> Embarcadero knows you are suffering.
>
> Due to FireMonkey issue, there are apparently upgrades due each month for
> XE2, so it might get fixed quickly.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
Seems like a BCBXE2 bug:
https://forums.embarcadero.com/thread.jspa?messageID=389837
Too bad!

Regards,

SZ
On Mon, Sep 12, 2011 at 14:39, Fastream Technologies wrote:

> On Mon, Sep 12, 2011 at 14:10, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > Did you really test this without any Delphi installed with just BCB
>> > installed?
>>
>> I tested with RAD Studio Architect XE2 started with the C++ Builder
>> personality only (bds.exe -pCBuilder).
>> That's how I build and test all ICS CPP packages.
>>
>>
>>
>
> I think you should also test it with BCB only in a vm. Or maybe I am
> missing something terribly. Yesterday I installed the trial version, then
> uninstalled and today ordered the real one and had it download the install
> files to a different folder. Desperately lost...
>
> Regards,
>
> SZ
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
 On Mon, Sep 12, 2011 at 14:10, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Did you really test this without any Delphi installed with just BCB
> > installed?
>
> I tested with RAD Studio Architect XE2 started with the C++ Builder
> personality only (bds.exe -pCBuilder).
> That's how I build and test all ICS CPP packages.
>
>
>

I think you should also test it with BCB only in a vm. Or maybe I am missing
something terribly. Yesterday I installed the trial version, then
uninstalled and today ordered the real one and had it download the install
files to a different folder. Desperately lost...

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
Did you really test this without any Delphi installed with just BCB
installed?
Regards,

SZ

On Mon, Sep 12, 2011 at 13:51, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > What would you say to this error under BCB XE2 Pro:
> >
> > [DCC Fatal Error] Exception Exception: Compiler for personality
> > "Delphi.Personality" and platform "Win32" missing or unavailable.
>
> I'd guess you opened a Delphi project or the update from an older
> project did not work properly.
> If that is not the case I have no idea, please ask C++ Builder
> questions in the public embarcadero fora/newsgroups.
> The default ICS XE2 packages do compile and all demos run as well.
>
> --
> Arno Garrels
>
>
> > Best Regards,
> >
> > SZ
> > On Mon, Sep 12, 2011 at 13:31, Arno Garrels 
> > wrote:
> >
> >> Fastream Technologies wrote:
> >>> I think it does not let runtime-only BCB packages. I got over it by
> >>> using the design time package but after making my custom settings
> >>> the compiler gives:
> >>
> >> In C++ Builder XE2 there is a bug with building packages containing
> >> .pas files from the project manager _IF you do not turn OFF project
> >> option "C++ Linker | Generate static package library file (.lib)".
> >> The ICS package projects for XE2 C++ Builder are configured to not
> >> generate .lib.
> >>
> >> --
> >> Arno Garrels
> >>
> >>
> >> --
> >> To unsubscribe or change your settings for TWSocket mailing list
> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> >> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
What would you say to this error under BCB XE2 Pro:

[DCC Fatal Error] Exception Exception: Compiler for personality
"Delphi.Personality" and platform "Win32" missing or unavailable.
Best Regards,

SZ
On Mon, Sep 12, 2011 at 13:31, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > I think it does not let runtime-only BCB packages. I got over it by
> > using the design time package but after making my custom settings the
> > compiler gives:
>
> In C++ Builder XE2 there is a bug with building packages containing .pas
> files from the project manager _IF you do not turn OFF project option
> "C++ Linker | Generate static package library file (.lib)". The ICS
> package projects for XE2 C++ Builder are configured to not generate
> .lib.
>
> --
> Arno Garrels
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
I think it does not let runtime-only BCB packages. I got over it by using
the design time package but after making my custom settings the compiler
gives:

[Fatal Error] Cannot create file "". The filename, directory name, or volume
label syntax is incorrect

of which when I hit F5 gives "Keyword not defined. I am uploading the file
to http://www.fastream.com/ics/bcbxe2package.rar
Hope you can help.

Regards,

SZ


On Mon, Sep 12, 2011 at 12:56, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > Just migrating and I get Delphi personality not found error.
> > Best Regards,
>
> I tested RAD Studio XE2 with Delphi and C++ installed together, C++
> compiled find.  Not testing with C++ alone.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Fastream Technologies
Hello,

Just migrating and I get Delphi personality not found error.
Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Fastream Technologies
Sorry my error. Thank you so much for the fix! Please tell me your Paypal
email.
Best Regards,

Subzero
On Sun, Sep 11, 2011 at 11:01, Arno Garrels  wrote:

> Arno Garrels wrote:
> > Fastream Technologies wrote:
> >> I have 7.17 but it still does not work! Could you send me the entire
> >> unit so that I could compare?
> >
> >
> http://svn.overbyte.be:8443/svn/ics/trunk/Delphi/Vc32/OverbyteIcsHttpProt.pas
>
> Of course you have to add the three lines fix from my first reply!
>
> >
> > I use the OverbyteIcsHttpTst demo out of the box, against
> > http://www.duodata.de/xtest.php?m=1
> >
> > where "m" can be 1-16
> >
> > Can somebody else confirm?
> >
> > --
> > Arno Garrels
> >
> >
> >> Best Regards,
> >>
> >> Gorkem Ates
> >> *Fastream Technologies*
> >> *Software IQ: Innovation & Quality*
> >> http://www.iqproxyserver.com | http://www.fastream.com |
> >> twitter.com/fastream
> >> *Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
> >> Join *IQ Proxy Server email list *at
> >> http://groups.yahoo.com/group/IQProxyServer
> >> On Sun, Sep 11, 2011 at 10:33, Arno Garrels 
> >> wrote:
> >>
> >>> Fastream Technologies wrote:
> >>>> Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
> >>>> fail. Best Regards,
> >>>
> >>> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
> >>> as well.
> >>>
> >>>
> >>>
> >>>>
> >>>> SZ
> >>>> On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
> >>>> wrote:
> >>>>
> >>>>> Fastream Technologies wrote:
> >>>>>> Hello,
> >>>>>>
> >>>>>> I have had a coder code a PHP script for this purpose. In the
> >>>>>> script the buggy cases are marked in source. Just POSTed with ICS
> >>>>>> Post demo to IIS 7.5 and the bug showed its ugly face. Since we
> >>>>>> have a big customer awaiting the fix, if somebody could sacrifice
> >>>>>> his Sunday to help fix it out, we will donate $100 to him to his
> >>>>>> Paypal or share-it or whatever. The test case is at,
> >>>>>
> >>>>> Try this fix:
> >>>>>
> >>>>> procedure THttpCli.GetBodyLineNext;
> >>>>> [..]
> >>>>>{ Here we simply ignore until next LF }
> >>>>>while N > 0 do begin
> >>>>> //  if P^ = #10 then begin
> >>>>>if Ord(FReceiveBuffer[P]) = 10 then begin // FP
> >>>>>09/09/06 if FChunkLength = 0 then
> >>>>> // <= AG 09/11/2011
> >>>>>FChunkState := httpChunkDone  // <=
> >>>>> AG 09/11/2011
> >>>>>else  // <=
> >>>>> AG 09/11/2011
> >>>>>FChunkState := httpChunkGetData;
> >>>>>Inc(P);
> >>>>>Dec(N);
> >>>>>break;
> >>>>>end;
> >>>>> --
> >>>>> Arno Garrels
> >>>>> --
> >>>>> To unsubscribe or change your settings for TWSocket mailing list
> >>>>> please goto
> >>>>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit
> >>>>> our website at http://www.overbyte.be
> >>> --
> >>> To unsubscribe or change your settings for TWSocket mailing list
> >>> please goto
> >>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our
> >>> website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Fastream Technologies
I have 7.17 but it still does not work! Could you send me the entire unit so
that I could compare?
Best Regards,

Gorkem Ates
*Fastream Technologies*
*Software IQ: Innovation & Quality*
http://www.iqproxyserver.com | http://www.fastream.com |
twitter.com/fastream
*Pbx:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
Join *IQ Proxy Server email list *at
http://groups.yahoo.com/group/IQProxyServer
On Sun, Sep 11, 2011 at 10:33, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still
> > fail. Best Regards,
>
> Not for me, using OverbyteIcsHttpProt.pas V7.17. V7.15+ should work
> as well.
>
>
>
> >
> > SZ
> > On Sun, Sep 11, 2011 at 09:46, Arno Garrels 
> > wrote:
> >
> >> Fastream Technologies wrote:
> >>> Hello,
> >>>
> >>> I have had a coder code a PHP script for this purpose. In the script
> >>> the buggy cases are marked in source. Just POSTed with ICS Post demo
> >>> to IIS 7.5 and the bug showed its ugly face. Since we have a big
> >>> customer awaiting the fix, if somebody could sacrifice his Sunday to
> >>> help fix it out, we will donate $100 to him to his Paypal or
> >>> share-it or whatever. The test case is at,
> >>
> >> Try this fix:
> >>
> >> procedure THttpCli.GetBodyLineNext;
> >> [..]
> >>{ Here we simply ignore until next LF }
> >>while N > 0 do begin
> >> //  if P^ = #10 then begin
> >>if Ord(FReceiveBuffer[P]) = 10 then begin // FP
> >>09/09/06 if FChunkLength = 0 then
> >> // <= AG 09/11/2011
> >>FChunkState := httpChunkDone  // <= AG
> >> 09/11/2011
> >>else  // <= AG
> >> 09/11/2011
> >>FChunkState := httpChunkGetData;
> >>Inc(P);
> >>Dec(N);
> >>break;
> >>end;
> >> --
> >> Arno Garrels
> >> --
> >> To unsubscribe or change your settings for TWSocket mailing list
> >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> >> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-11 Thread Fastream Technologies
Nice try but not there yet. Test cases 8, 9, 10, 12, 13, 14 still fail.
Best Regards,

SZ
On Sun, Sep 11, 2011 at 09:46, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > I have had a coder code a PHP script for this purpose. In the script
> > the buggy cases are marked in source. Just POSTed with ICS Post demo
> > to IIS 7.5 and the bug showed its ugly face. Since we have a big
> > customer awaiting the fix, if somebody could sacrifice his Sunday to
> > help fix it out, we will donate $100 to him to his Paypal or share-it
> > or whatever. The test case is at,
>
> Try this fix:
>
> procedure THttpCli.GetBodyLineNext;
> [..]
>{ Here we simply ignore until next LF }
>while N > 0 do begin
> //  if P^ = #10 then begin
>if Ord(FReceiveBuffer[P]) = 10 then begin // FP 09/09/06
>if FChunkLength = 0 then  // <= AG
> 09/11/2011
>FChunkState := httpChunkDone  // <= AG
> 09/11/2011
>else  // <= AG
> 09/11/2011
>FChunkState := httpChunkGetData;
>Inc(P);
>Dec(N);
>break;
>end;
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-10 Thread Fastream Technologies
To test the code, just install PHP to IIS or Apache, then unrar test.php in
the root and POST anything to,

http://localhost/test.php?m=11

You will see that the component never returns anything and the next request
gives "busy" exception!
Best Regards,

SZ

On Sun, Sep 11, 2011 at 06:43, Fastream Technologies wrote:

> Hello,
>
> I have had a coder code a PHP script for this purpose. In the script the
> buggy cases are marked in source. Just POSTed with ICS Post demo to IIS 7.5
> and the bug showed its ugly face. Since we have a big customer awaiting the
> fix, if somebody could sacrifice his Sunday to help fix it out, we will
> donate $100 to him to his Paypal or share-it or whatever. The test case is
> at,
>
> http://www.fastream.com/ics/ICSHTTPCliPostBugDemo.rar
> Currently it should not be possible to write a web service call code with
> ICS web client!
>
> Best Regards,
>
> SubZero
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] ICS HTTP Client POST fails in 6 out of 16 test cases

2011-09-10 Thread Fastream Technologies
Hello,

I have had a coder code a PHP script for this purpose. In the script the
buggy cases are marked in source. Just POSTed with ICS Post demo to IIS 7.5
and the bug showed its ugly face. Since we have a big customer awaiting the
fix, if somebody could sacrifice his Sunday to help fix it out, we will
donate $100 to him to his Paypal or share-it or whatever. The test case is
at,

http://www.fastream.com/ics/ICSHTTPCliPostBugDemo.rar
Currently it should not be possible to write a web service call code with
ICS web client!

Best Regards,

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS v7 for XE2 online now

2011-09-02 Thread Fastream Technologies
On Fri, Sep 2, 2011 at 15:57, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > As you probably already noticed XE2 RTMed yesterday.
>
> And ICS v7 now supports Delphi 64-bit projects, but there is no C++
> 64-bit compiler yet, that's planned for the next release.
>
>
>

Too bad. :-( Though we will still upgrade...
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTP Client POST under WinXPSP3 issue

2011-08-16 Thread Fastream Technologies
Basically this is my code. It works on Win7/2008 for POST as well as for
GET/HEAD (which return just 403) but under XPSP3 GET/HEAD still works from
browser but the POST fails. Just returns nothing--as if it is aborted. I do
not have debugger on the XP machine but one thing very strange is it works
when the engine (server) is in debug exe but not when it is as service. The
service is optimized code. So I am clueless right now.

void __fastcall AdminServer::HTTPServerPostDocument(TObject *Sender, TObject
*Client, Overbyteicshttpsrv::THttpGetFlag &Flags)
{
 THttpConnection *httpClient = (THttpConnection*)Client;
 AdminServerConnectionData *connectionData =
(AdminServerConnectionData*)(void*)httpClient->Tag;
 connectionData->docSize = 0;
 forceRestart = false;
 if(httpClient->RequestContentLength <= (4 * 1024 * 1024))
  Flags = hgAcceptData;
}
//---
void __fastcall AdminServer::HTTPServerPostedData(TObject *Sender, TObject
*Client, WORD ErrCode)
{
 THttpConnection *httpClient = (THttpConnection*)Client;
 AdminServerConnectionData *connectionData =
(AdminServerConnectionData*)(void*)httpClient->Tag;
 if(ErrCode)
 {
  httpClient->PostedDataReceived();
  httpClient->Abort();
 }
 else
 {
  int Len = httpClient->Receive((void*)connectionData->buffer, 8192);
  if(Len <= 0)
   return;
  connectionData->stream->Write((void*)connectionData->buffer, Len);
  connectionData->docSize += Len;

  if(connectionData->docSize >= httpClient->RequestContentLength)
  {
   httpClient->PostedDataReceived();
   connectionData->stream->Seek(0, 0);
   TMemoryStream *responseXML = processRequest(connectionData->stream,
httpClient);
   Overbyteicshttpsrv::THttpGetFlag Flags;
   httpClient->DocStream = responseXML;
   httpClient->SendStream();
  }
 }
}
//---

Best Regards,

SZ

On Tue, Aug 16, 2011 at 10:42, Fastream Technologies wrote:

> No, it must be with THttpServer on very fast (say local) connections. With
> Wireshark I can see the data does not reach the client and it timeouts.
>
> Regards,
>
> SZ
> On Mon, Aug 15, 2011 at 12:49, Fastream Technologies 
> wrote:
>
>> I think you are right. However there is an issue in my code in service
>> application mode. I believe it should be something related with Windows
>> account permissions but not sure...
>>
>> Regards,
>>
>> SZ
>> On Mon, Aug 15, 2011 at 12:22, Angus Robertson - Magenta Systems Ltd <
>> an...@magsys.co.uk> wrote:
>>
>>> > We have an important issue with HTTPClient: Only under WinXP, when
>>> > I POST
>>> > data to an ICS server, it returns StatusCode = 0 and empty
>>> > RcvdStream! Has anybody seen this behavior before?
>>>
>>> No, my public web site is using the latest ICS v7 snapshot and POST works
>>> fine from Windows XP with MSIE and Firefox, try the page at:
>>>
>>> http://www.telecom-tariffs.co.uk/codelook.htm
>>>
>>> Angus
>>>
>>> --
>>> To unsubscribe or change your settings for TWSocket mailing list
>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>>> Visit our website at http://www.overbyte.be
>>>
>>
>>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTP Client POST under WinXPSP3 issue

2011-08-16 Thread Fastream Technologies
No, it must be with THttpServer on very fast (say local) connections. With
Wireshark I can see the data does not reach the client and it timeouts.

Regards,

SZ
On Mon, Aug 15, 2011 at 12:49, Fastream Technologies wrote:

> I think you are right. However there is an issue in my code in service
> application mode. I believe it should be something related with Windows
> account permissions but not sure...
>
> Regards,
>
> SZ
> On Mon, Aug 15, 2011 at 12:22, Angus Robertson - Magenta Systems Ltd <
> an...@magsys.co.uk> wrote:
>
>> > We have an important issue with HTTPClient: Only under WinXP, when
>> > I POST
>> > data to an ICS server, it returns StatusCode = 0 and empty
>> > RcvdStream! Has anybody seen this behavior before?
>>
>> No, my public web site is using the latest ICS v7 snapshot and POST works
>> fine from Windows XP with MSIE and Firefox, try the page at:
>>
>> http://www.telecom-tariffs.co.uk/codelook.htm
>>
>> Angus
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTP Client POST under WinXPSP3 issue

2011-08-15 Thread Fastream Technologies
I think you are right. However there is an issue in my code in service
application mode. I believe it should be something related with Windows
account permissions but not sure...

Regards,

SZ
On Mon, Aug 15, 2011 at 12:22, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > We have an important issue with HTTPClient: Only under WinXP, when
> > I POST
> > data to an ICS server, it returns StatusCode = 0 and empty
> > RcvdStream! Has anybody seen this behavior before?
>
> No, my public web site is using the latest ICS v7 snapshot and POST works
> fine from Windows XP with MSIE and Firefox, try the page at:
>
> http://www.telecom-tariffs.co.uk/codelook.htm
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTP Client POST under WinXPSP3 issue

2011-08-15 Thread Fastream Technologies
Well, it turned out to be an ICS web server issue on XP as the client works
well with other IPs. Also the server engine debug exe (which is just the
service code wrapped in simple GUI) also works yet the service! I cannot
access the Services section of Windows too--gives error about ActiveX. The
interesting thing is all these that happen under vmware in XP also happens
to other people as well!
Regards,

SZ

On Mon, Aug 15, 2011 at 10:38, Fastream Technologies wrote:

> Hello,
>
> We have an important issue with HTTPClient: Only under WinXP, when I POST
> data to an ICS server, it returns StatusCode = 0 and empty RcvdStream! Has
> anybody seen this behavior before? I am using the latest snapshot of
> yesterday (v7).
>
> Regards,
> SZ
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] HTTP Client POST under WinXPSP3 issue

2011-08-15 Thread Fastream Technologies
Hello,

We have an important issue with HTTPClient: Only under WinXP, when I POST
data to an ICS server, it returns StatusCode = 0 and empty RcvdStream! Has
anybody seen this behavior before? I am using the latest snapshot of
yesterday (v7).

Regards,
SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [OT] Nice forum engine based on the mailing list

2011-08-05 Thread Fastream Technologies
AFAIK Windows Live suite has a mail reader (newer OE) in it for free.

Regards,

SZ

On Fri, Aug 5, 2011 at 22:02, Arno Garrels  wrote:

> Angus Robertson - Magenta Systems Ltd wrote:
> >> There are mail readers available capable to sort mails by threads
> >> AFAIK.
> >
> > Do you mean people actually use email readers that don't sort by
> > subjects and replies?
>
> Sure, I am such an example, I still use OE (old fashioned, got
> socialized with it :)
> >
> >> My personal favourites are:
> >> #1 Newsgroup
> >> #2 Mailinglist
> >
> > My 17 year old client does both, and private conferencing:
> >
> > http://cixonline.com/read_offline.asp
>
> Looks nice, however I prefer to not pay for something that should
> be part of the OS. Since Win7 there's no mail reader available,
> shame on MS.
>
> >
> > Major bonus is it displays HTML email as text, so no viruses.
>
> That's no problem with OE as well. Just change the defaults.
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SAN SSL certificates

2011-08-01 Thread Fastream Technologies
Arno,
On Mon, Aug 1, 2011 at 17:56, Arno Garrels  wrote:

> Fastream Technologies wrote:
> >> What is the problem? Please be more specific.
> >>
> >
> > Honestly I am not yet sure. It is just one customer says "he could
> > not get SAN SSL cert to work". I told him to alter Accepted Hosts and
> > use the wildcard SNI domain. I asked here to learn if it is supported
> > or not. If it is not, I need to know to announce. If you know a way
> > to get it working, let me know.
>
> As far as I know there is no problem.
> OpenSSL doesn't use these certificate fields for verification,
> only TX509Base.PostConnectionCheck() and it has to be called
> explicitly. This method searchs for the passed string in fields
> subject alternative name and common name.
>
>
>

So would the additional domains work with ICS or not? If not, what to do? I
notice our customers are getting more and more high end every day and this
is making them harder to support.

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SAN SSL certificates

2011-08-01 Thread Fastream Technologies
 On Mon, Aug 1, 2011 at 16:43, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > I wonder how should we support SAN (Subject Alternative Name)
> > certificates with ICS? These are certificates with multi domains. Are
> > they implicitly supported?
>
> What is the problem? Please be more specific.
>

Honestly I am not yet sure. It is just one customer says "he could not get
SAN SSL cert to work". I told him to alter Accepted Hosts and use the
wildcard SNI domain. I asked here to learn if it is supported or not. If it
is not, I need to know to announce. If you know a way to get it working, let
me know.

Best Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] SAN SSL certificates

2011-08-01 Thread Fastream Technologies
Hello,

I wonder how should we support SAN (Subject Alternative Name) certificates
with ICS? These are certificates with multi domains. Are they implicitly
supported?

Best Regards,

Gorkem Ates
*Fastream Technologies*
*Software IQ: Innovation & Quality*
http://www.fastream.com | http://twitter.com/fastream |
http://www.iqproxyserver.com
*Sales & Support: Email:* sa...@fastream.com, supp...@fastream.com | *Intl.
Hotline:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
Join *IQ Proxy Server Yahoo group* at
http://groups.yahoo.com/group/IQProxyServer
Join *IQWF Server Yahoo group* at http://groups.yahoo.com/group/IQWFServer
This is a *no-nonsense* signature! Please do *join our yahoo groups for
announcements of future versions* of IQ Proxy Server and IQ Web/FTP Server
(traffic level is *very low*).
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Wiki article writing incentive idea

2011-06-15 Thread Fastream Technologies
Francois, what do you think?
Regards,

SZ
On Wed, Jun 15, 2011 at 11:11, daniel cc  wrote:

> This would be a good idea..
>
> -Original Message----- From: Fastream Technologies Sent: Wednesday,
> June 15, 2011 10:46 AM To: ICS support mailing Subject: [twsocket] Wiki
> article writing incentive idea
> Hello Francois,
>
> After observing your wiki with not much content for so long time, I have
> come up with an idea. Why don't you open a "use cases" category where
> developers can explain how they use ICS within their projects technically
> and more fundemantally why they choose it. In return we should be given the
> right to place links to our company web sites. If you look at our history
> page at www.iqproxyserver.com/history.php , I have mentioned ICS there but
> for technical writings your site is a better fit.
>
> Best Regards,
>
> SubZero
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL server and CLient cert.

2011-06-15 Thread Fastream Technologies
Hello,

If you want SSL, a server certificate is a must. It enables the client to
validate the server's authenticity. If you additionally need the server to
validate the client, then optionally you need a client SSL certificate. Some
of our reverse proxy clients use it since some Microsoft web server
applications require it but most do not need it.

Regards,

Gorkem Ates
On Wed, Jun 15, 2011 at 12:31, daniel cc  wrote:

> Thanks mate, very much appreciated :)
>
> Just one more question,
> If I am using ICS SSLServer and ICS SSLClients,
> I do need the certificate for the server but do I need to buy the PEM file
> for the clients as well or how it goes?
> What I know is,
> Server needs CERT and client needs the PEM file as in my demo..
>
> I think Comodo is good enough.
>
>
> Thanks
>
>
> -Original Message- From: Fastream Technologies
> Sent: Wednesday, June 15, 2011 11:22 AM
>
> To: ICS support mailing
> Subject: Re: [twsocket] SSL server and CLient cert.
>
> AFAIK Comodo is the cheapest one.
> Regards,
>
> SubZero
> On Wed, Jun 15, 2011 at 11:11, daniel cc  wrote:
>
>  Okay,
>> Thanks a lot :)
>> I know the different between self made and not self made now.
>> How about recommendations?
>> can you guys recommend any commercial certs?
>> I plan to buy..
>>
>> Thanks
>>
>> -Original Message- From: Francois PIETTE
>> Sent: Wednesday, June 15, 2011 10:43 AM
>>
>> To: ICS support mailing
>> Subject: Re: [twsocket] SSL server and CLient cert.
>>
>>  Anything that works for Apache would work since they use OpenSSL as well.
>>
>>>
>>>>
>>>   Thanks for the response :)
>>
>>> I am so sorry :(, forgot to tell...
>>> I am not using SSL for web communication, I am using the SSLServer and
>>> SSLClient for client to host connection.
>>> I believe this has got nothing to do with Apache because there is no
>>> apache used.
>>>
>>>
>> What SZ is saying is that Apache and ICS both use OpenSSL. So any
>> certificate OK for Apache is OK for OpenSSL and is OK for ICS.
>>
>> You can also use OpenSSL comand line utility to convert certificates for
>> some format to other OpenSSL compatible format. I've done it to to convert
>> a
>> certificate exported from IE.
>>
>> --
>> francois.pie...@overbyte.be
>> The author of the freeware multi-tier middleware MidWare
>> The author of the freeware Internet Component Suite (ICS)
>> http://www.overbyte.be
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>>  --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>



-- 
Gorkem Ates
*Fastream Technologies*
*Software IQ: Innovation & Quality*
http://www.fastream.com | http://twitter.com/fastream |
http://www.iqproxyserver.com
*Sales & Support: Email:* sa...@fastream.com, supp...@fastream.com | *Intl.
Hotline:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
Join *IQ Proxy Server Yahoo group* at
http://groups.yahoo.com/group/IQProxyServer
Join *IQWF Server Yahoo group* at http://groups.yahoo.com/group/IQWFServer
This is a *no-nonsense* signature! Please do *join our yahoo groups for
announcements of future versions* of IQ Proxy Server and IQ Web/FTP Server
(traffic level is *very low*).
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL server and CLient cert.

2011-06-15 Thread Fastream Technologies
AFAIK Comodo is the cheapest one.
Regards,

SubZero
On Wed, Jun 15, 2011 at 11:11, daniel cc  wrote:

> Okay,
> Thanks a lot :)
> I know the different between self made and not self made now.
> How about recommendations?
> can you guys recommend any commercial certs?
> I plan to buy..
>
> Thanks
>
> -Original Message- From: Francois PIETTE
> Sent: Wednesday, June 15, 2011 10:43 AM
>
> To: ICS support mailing
> Subject: Re: [twsocket] SSL server and CLient cert.
>
>  Anything that works for Apache would work since they use OpenSSL as well.
>>>
>>
>  Thanks for the response :)
>> I am so sorry :(, forgot to tell...
>> I am not using SSL for web communication, I am using the SSLServer and
>> SSLClient for client to host connection.
>> I believe this has got nothing to do with Apache because there is no
>> apache used.
>>
>
> What SZ is saying is that Apache and ICS both use OpenSSL. So any
> certificate OK for Apache is OK for OpenSSL and is OK for ICS.
>
> You can also use OpenSSL comand line utility to convert certificates for
> some format to other OpenSSL compatible format. I've done it to to convert
> a
> certificate exported from IE.
>
> --
> francois.pie...@overbyte.be
> The author of the freeware multi-tier middleware MidWare
> The author of the freeware Internet Component Suite (ICS)
> http://www.overbyte.be
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Wiki article writing incentive idea

2011-06-15 Thread Fastream Technologies
Hello Francois,

After observing your wiki with not much content for so long time, I have
come up with an idea. Why don't you open a "use cases" category where
developers can explain how they use ICS within their projects technically
and more fundemantally why they choose it. In return we should be given the
right to place links to our company web sites. If you look at our history
page at www.iqproxyserver.com/history.php , I have mentioned ICS there but
for technical writings your site is a better fit.

Best Regards,

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL server and CLient cert.

2011-06-15 Thread Fastream Technologies
Hello again,

ICS and Apache uses the same open source component called OpenSSL as base
for their SSL features. So any certificate works for Apache works for ICS,
that's what I meant.

Self-signed certificates are open man-in-the-middle attacks.

Regards,

SZ

On Wed, Jun 15, 2011 at 10:43, daniel cc  wrote:

> Hi,
> Thanks for the response :)
> I am so sorry :(, forgot to tell...
> I am not using SSL for web communication, I am using the SSLServer and
> SSLClient for client to host connection.
> I believe this has got nothing to do with Apache because there is no apache
> used.
>
> I have been using demo server+client cert. delivered with component demo.
>
> I would also like to ask,
> Is it possible to use self made certs as told here?
> are they safe?
>
> http://acs.lbl.gov/~boverhof/openssl_certs.html
>
> Thanks
>
> -Original Message- From: Fastream Technologies
> Sent: Wednesday, June 15, 2011 10:22 AM
> To: ICS support mailing
> Subject: Re: [twsocket] SSL server and CLient cert.
>
>
> Anything that works for Apache would work since they use OpenSSL as well.
>
> Regards,
>
> SZ
> On Wed, Jun 15, 2011 at 09:36, daniel cc  wrote:
>
>  Hi,
>> I am using SSL server and SSL client in my application,
>> can someone please inform,
>> what are the commercial certificates for the component?
>>
>> This may not be a question related to the component but,
>> I would like to hear your opinions.
>>
>> Thanks in advance
>>
>> -daniel
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>>  --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL server and CLient cert.

2011-06-15 Thread Fastream Technologies
Anything that works for Apache would work since they use OpenSSL as well.

Regards,

SZ
On Wed, Jun 15, 2011 at 09:36, daniel cc  wrote:

> Hi,
> I am using SSL server and SSL client in my application,
> can someone please inform,
> what are the commercial certificates for the component?
>
> This may not be a question related to the component but,
> I would like to hear your opinions.
>
> Thanks in advance
>
> -daniel
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with test unit

2011-06-14 Thread Fastream Technologies
Sorry wrong alarm. A modification/workaround I had made (which turned out to
be no longer needed) to an old HTTPCli bug in the component caused it. ;-[

Regards,

SZ

On Tue, Jun 14, 2011 at 16:42, Fastream Technologies wrote:

> Strange. Maybe my ICS is utdated or you do not define my defines. Will
> first try to update and then let you know.
>
> Regards,
>
> SZ
>
> On Tue, Jun 14, 2011 at 16:11, Arno Garrels  wrote:
>
>> Fastream Technologies wrote:
>> > Hello,
>> >
>> > I have come accross an issue that I recall I had made a workaround in
>> > the past but cannot remember what it was. Perhaps it is time this bug
>> > is fixed. The C++ code is at,
>> > http://www.fastream.com/ics/HttpClientTest.rar and after a sync GET
>> > to a URL with no content-length and chunked encoding (connection:
>> > close), it does not call onrequestdone! Checked with Wireshark and
>> > the response is returned to the client. The test URL is dyndns.com
>> > (this is actually a part of our dynamic DNS updater) and it should
>> > return "badauth".
>>
>> Works fine with both your test case and OverbyteIcsHttpsTst demo here.
>> The response is HTTP/1.0 with a "Connection: close" header and not chunked
>> encoded. TSslHttpCli closes the connection and OnRequestDone is called,
>> the return is "badAuth".
>>
>> --
>> Arno Garrels
>>
>>
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with test unit

2011-06-14 Thread Fastream Technologies
Strange. Maybe my ICS is utdated or you do not define my defines. Will first
try to update and then let you know.

Regards,

SZ

On Tue, Jun 14, 2011 at 16:11, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > I have come accross an issue that I recall I had made a workaround in
> > the past but cannot remember what it was. Perhaps it is time this bug
> > is fixed. The C++ code is at,
> > http://www.fastream.com/ics/HttpClientTest.rar and after a sync GET
> > to a URL with no content-length and chunked encoding (connection:
> > close), it does not call onrequestdone! Checked with Wireshark and
> > the response is returned to the client. The test URL is dyndns.com
> > (this is actually a part of our dynamic DNS updater) and it should
> > return "badauth".
>
> Works fine with both your test case and OverbyteIcsHttpsTst demo here.
> The response is HTTP/1.0 with a "Connection: close" header and not chunked
> encoded. TSslHttpCli closes the connection and OnRequestDone is called,
> the return is "badAuth".
>
> --
> Arno Garrels
>
>
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with test unit

2011-06-14 Thread Fastream Technologies
Hello,

I have debugged the issue. It works on older ICS versions but with newer
versions, URL
http://fastream:g...@members.dyndns.org/nic/update?system=dyndns&wildcards=nochg&hostname=abc.dyndns.org&myip=95.15.220.199
does state Connection: close but the server expects the client to close the
connection which confuses ICS.

Regards,

SZ
On Tue, Jun 14, 2011 at 13:39, Fastream Technologies wrote:

> Did my message appear on the list? This time I followed Francois' advice
> and provided a test project which reproduces the issue easily. I suspect
> this is something that got broken in recent months' versions.
>
> Regards,
>
> SZ
> On Tue, Jun 14, 2011 at 12:07, Fastream Technologies 
> wrote:
>
>> Hello,
>>
>> I have come accross an issue that I recall I had made a workaround in the
>> past but cannot remember what it was. Perhaps it is time this bug is fixed.
>> The C++ code is at,
>> http://www.fastream.com/ics/HttpClientTest.rar and after a sync GET to a
>> URL with no content-length and chunked encoding (connection: close), it does
>> not call onrequestdone! Checked with Wireshark and the response is returned
>> to the client. The test URL is dyndns.com (this is actually a part of our
>> dynamic DNS updater) and it should return "badauth".
>>
>> I hope you can help.
>>
>> Regards,
>>
>> SubZero
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli bug with test unit

2011-06-14 Thread Fastream Technologies
Did my message appear on the list? This time I followed Francois' advice and
provided a test project which reproduces the issue easily. I suspect this is
something that got broken in recent months' versions.

Regards,

SZ
On Tue, Jun 14, 2011 at 12:07, Fastream Technologies wrote:

> Hello,
>
> I have come accross an issue that I recall I had made a workaround in the
> past but cannot remember what it was. Perhaps it is time this bug is fixed.
> The C++ code is at,
> http://www.fastream.com/ics/HttpClientTest.rar and after a sync GET to a
> URL with no content-length and chunked encoding (connection: close), it does
> not call onrequestdone! Checked with Wireshark and the response is returned
> to the client. The test URL is dyndns.com (this is actually a part of our
> dynamic DNS updater) and it should return "badauth".
>
> I hope you can help.
>
> Regards,
>
> SubZero
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] THttpCli bug with test unit

2011-06-14 Thread Fastream Technologies
Hello,

I have come accross an issue that I recall I had made a workaround in the
past but cannot remember what it was. Perhaps it is time this bug is fixed.
The C++ code is at,
http://www.fastream.com/ics/HttpClientTest.rar and after a sync GET to a URL
with no content-length and chunked encoding (connection: close), it does not
call onrequestdone! Checked with Wireshark and the response is returned to
the client. The test URL is dyndns.com (this is actually a part of our
dynamic DNS updater) and it should return "badauth".

I hope you can help.

Regards,

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] IPv6 support ?

2011-06-07 Thread Fastream Technologies
There was an effort but IIRC it needs testing. You can download the source
from the SVN repository.
Regards,

SZ
On Tue, Jun 7, 2011 at 18:20, Max Terentiev  wrote:

> Hi,
>
>
>
> Does ICS v6-v7 support IPv6 ?
>
>
>
> Can't find any info about it at overbyte.be
>
>
>
> Thanx !
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Zlibhigh compression function with content length and offset

2011-05-19 Thread Fastream Technologies
Hello Angus,

Well I placed the length check for useinbuf = true part but that was not
being called in most cases.

Regards,

Gorkem

On Thu, May 19, 2011 at 16:34, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > The function I posted earlier has just been tested and failed due to
> > ICS/ZLib issues.
>
> Exactly what problems arose in testing?
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>



-- 
Gorkem Ates
*Fastream Technologies*
*Software IQ: Innovation & Quality*
http://www.fastream.com | http://twitter.com/fastream |
http://www.iqproxyserver.com
*Sales & Support: Email:* sa...@fastream.com, supp...@fastream.com | *Intl.
Hotline:* +90-312-223-2830 (weekdays, 9am-6pm *GMT+300*)
Join *IQ Proxy Server Yahoo group* at
http://groups.yahoo.com/group/IQProxyServer
Join *IQWF Server Yahoo group* at http://groups.yahoo.com/group/IQWFServer
This is a *no-nonsense* signature! Please do *join our yahoo groups for
announcements of future versions* of IQ Proxy Server and IQ Web/FTP Server
(traffic level is *very low*).
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Zlibhigh compression function with content length and offset

2011-05-19 Thread Fastream Technologies
Hello,

The function I posted earlier has just been tested and failed due to
ICS/ZLib issues. We offer $120 with Paypal for somebody who could modify ICS
code in an acceptable (by Francois) manner so that the compression function
takes offset and length parameters. This is an urgent job.

Regards,

SubZero
r...@fastream.com
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Found the cause of the issue for 10053 errors in HTTP

2011-05-11 Thread Fastream Technologies
I am 99% sure that there is a problem with HTTPS POST. I have posted code
here many times before but unfortunately nobody said anything. Both client
and server are ICS. It works fine with HTTP.

Regards,

SZ

On Wed, May 11, 2011 at 13:29, Arno Garrels  wrote:

> Fastream Technologies wrote:
> > Hello,
> >
> > In some cases SetReady() (hence OnRequestDone) is called twice, where
> > the second one should not be called and interferes with following
> > HTTP request (if any), ruining the state machine. I suggest something
> > like:
> >
> > void __fastcall SetReady()
> > {
> > if(alreadySetReady)
> >  return;
> > alreadySetReady = true;
> > ...
> > }
> >
> //---
>
> Such a fix won't fix the cause of the problem.
> Also don't you use a custom OverbyteIcsHttpProt.pas?
>
> This fix from SVN rev. #623 springs to mind:
>
> procedure THttpCli.Abort;
> var
>bFlag : Boolean;
>Msg   : TMessage;
> begin
>FLocationFlag := FALSE;  { Do not follow relocations V7.10 }
>{ The following two lines prevent OnRequestDone from trigger twice V7.10
> }
>FRcvdCount:= 0;  { Clear the receive buffer V7.10 }
>FReceiveLen   := 0;  { Clear the receive buffer V7.10 }
> [..]
>
> --
> Arno Garrels
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


  1   2   3   4   5   6   7   8   9   10   >