Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Anton Sviridov
if support for winsock below v2.2 was actually required in ICS v7? As Wiki says, Version 2.1 of Winsock was supplied in an add-on package for Windows 95. It was an integral component of Windows 98, Windows NT 4.0, and all subsequent Windows releases. (Microsoft did not supply implementations

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Angus Robertson - Magenta Systems Ltd
I'm going to look at how to implement IPv6 in ICS and wonder if support for winsock below v2.2 was actually required in ICS v7? No, I don't believe ICS v6 and v7 need to support any OSs earlier than Windows 2000, since they are long out of support and there is no need for them to support new

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: I'm going to look at how to implement IPv6 in ICS and wonder if support for winsock below v2.2 was actually required in ICS v7? No, I don't believe ICS v6 and v7 need to support any OSs earlier than Windows 2000, since they are long out of

[twsocket] HTTP Location

2010-05-20 Thread Angus Robertson - Magenta Systems Ltd
Is it valid for an HHTP header to relocate to an empty URL? Currently, HttpProt seems to parse the relocation to the same URL, and goes into a loop. HTTP/1.1 302 Found Location: http:// Temporary Redirection: http://www.telecomstrader.com/ to: http://www.telecomstrader.com/ Angus -- To

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Angus Robertson - Magenta Systems Ltd
There's an option to dynamically load a different winsock version at runtime (see properties ReqVerHigh and ReqVerLow). However loading v2.x requires winsock2 headers, and if we want IPv6 we must use winsock2 API. I think I'll keep these two properties as dummies, they would no longer work,

Re: [twsocket] HTTP Location

2010-05-20 Thread Stanislav
Hi, Angus, I'm not sure if it's valid, but it is used by server-side scripts for assigning some cookies and reloading the same page under new conditions: Location: / It's up to the site to prevent looping. Stan - Original Message - From: Angus Robertson - Magenta Systems Ltd

Re: [twsocket] HTTP Location

2010-05-20 Thread Angus Robertson - Magenta Systems Ltd
The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD I am using the HEAD method, this is a web site checker confirming 1,500 URLs in a database still exist each week... I'll try GET. Angus -- To unsubscribe or change your settings for

Re: [twsocket] HTTP Location

2010-05-20 Thread DZ-Jay
On May 20, 2010, at 05:59, Angus Robertson - Magenta Systems Ltd wrote: The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD I am using the HEAD method, this is a web site checker confirming 1,500 URLs in a database still exist each

Re: [twsocket] HTTP Location

2010-05-20 Thread Stanislav
Not exactly what I said ;-) I said that irrespective to what RFC could imply, some sites intentionally use redirection to the same location, and the site (server) should normally prevent endless looping. If it's not, than indeed a client should protect itself - whether it is implemented in

Re: [twsocket] HTTP Location

2010-05-20 Thread Angus Robertson - Magenta Systems Ltd
It is not clear to me from the spec, but if it makes the express assertion that it SHOULD give the new URI in the response to non-HEAD requests, by omission it seems to me that it then MUST do so for HEAD. It's not unusual for servers to treat HEAD differently, I had to fix the ICS web

[twsocket] Strange ICS proxy server in service app problem

2010-05-20 Thread Fastream Technologies
Hello, When under stress test, the service -project- crashes and needs a Task manager kill with more than 5,860 connections. When I use the same source with GUI project, it easily scales up to 20,000 connections. Any idea what we should be taking care of that we have not?? Thanks, SZ -- To

[twsocket] TWSocket's problem

2010-05-20 Thread Bruce Zhao
Hello everyone: In my program, I created a thread to read data and put it into the buffer, then the thread will post a message to main form and suspend itself. When the main form receives the message, it sends the data in buffer to the server. I wrote code in the OnDataSent event of TWSocket to

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: There's an option to dynamically load a different winsock version at runtime (see properties ReqVerHigh and ReqVerLow). However loading v2.x requires winsock2 headers, and if we want IPv6 we must use winsock2 API. I think I'll keep these two

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Fastream Technologies
On Thu, May 20, 2010 at 7:42 PM, Arno Garrels arno.garr...@gmx.de wrote: Angus Robertson - Magenta Systems Ltd wrote: There's an option to dynamically load a different winsock version at runtime (see properties ReqVerHigh and ReqVerLow). However loading v2.x requires winsock2 headers, and

Re: [twsocket] Strange ICS proxy server in service app problem

2010-05-20 Thread Fastream Technologies
Here is what I have done more: - attached the debugger to service process and got, http://www.fastream.com/ics/icserror8.png Hope you can help, SZ On Thu, May 20, 2010 at 7:10 PM, Fastream Technologies ga...@fastream.comwrote: Hello, When under stress test, the service -project- crashes and

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Angus Robertson - Magenta Systems Ltd
New API GetAddrInfo() handles both IPv4 and IPv6 but it is blocking. Should I try to emulate asynchron lookups using a thread? Ideas are welcome. Yes definitely, we must be consistent with everything else, no blocking allowed in ICS! How do we test IPv6 host lookups, presumably need an

Re: [twsocket] TWSocket's problem

2010-05-20 Thread Arno Garrels
Bruce Zhao wrote: Hello everyone: In my program, I created a thread to read data and put it into the buffer, then the thread will post a message to main form and suspend itself. When the main form receives the message, it sends the data in buffer to the server. I wrote code in the

Re: [twsocket] Strange ICS proxy server in service app problem

2010-05-20 Thread Arno Garrels
Fastream Technologies wrote: Here is what I have done more: - attached the debugger to service process and got, http://www.fastream.com/ics/icserror8.png ERROR_NOT_ENOUGH_MEMORY 8 (0x8) -- Arno Garrels Hope you can help, SZ On Thu, May 20, 2010 at 7:10 PM, Fastream Technologies

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Arno Garrels
Fastream Technologies wrote: But there's another problem with WSocket_WSAAsyncGetHostByName. AKAIK, this old API doesn't support IPv6. New API GetAddrInfo() handles both IPv4 and IPv6 but it is blocking. Should I try to emulate asynchron lookups using a thread? Ideas are welcome. -- Arno

Re: [twsocket] Strange ICS proxy server in service app problem

2010-05-20 Thread Fastream Technologies
Yes I see but under the same computer, same Win7Pro, same 4GB RAM, the GUI -debug- project that does exactly the same thing works very well!! I am trying to push the 32-bit compiler to its limits. On Thu, May 20, 2010 at 8:17 PM, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies

Re: [twsocket] Strange ICS proxy server in service app problem

2010-05-20 Thread Arno Garrels
Fastream Technologies wrote: Yes I see but under the same computer, same Win7Pro, same 4GB RAM, the GUI -debug- project that does exactly the same thing works very well!! I guess both use the same ICS, isn't it? So most likely something in your service-code makes the difference. -- Arno

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-20 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: New API GetAddrInfo() handles both IPv4 and IPv6 but it is blocking. Should I try to emulate asynchron lookups using a thread? Ideas are welcome. Yes definitely, we must be consistent with everything else, no blocking allowed in ICS! OK.