Override MAX File Descriptors Windows in msvcrt.dll
$250-750 USD
Closed
Posted over 12 years ago
$250-750 USD
Paid on delivery
Hello,
I have a proxy server called "[login to view URL]" with open source code and for sure it is working well on Windows and Linux but the thing is I am forced to work on this project as a windows user!.
This work is only for an office use not related to the owner of the proxy Server!.
I have compiled Squid 2.7Stable9 on Windows using MinGW and Cygwin but the thing I have already tried to avoid the file descriptors limitation in windows but with no luck anyway . The problem is MinGW is linking with [login to view URL] on Windows (located in C:/windows/system32) but Squid only can see 2048 since the operating system has the definition of maxfd=2048 on Windows .. so some people say that I need to get the source code of [login to view URL] and work on my own [login to view URL] as a replacement to [login to view URL] on windows!! as I can only change something silly in the file.c .
FILE.C
---------
/* FIXME: this should be allocated dynamically */
#define MSVCRT_MAX_FILES 2048
in this way I can only change from 2048 to 20480!. anyway I have the source code but taken from [login to view URL]! and this source code is corrupted because its not pure for WIndows since their work is to get the source code and compile it under linux so if its possible to something like replacing the use of the POSIX I/O interfaces or the functions squid uses on Windows (repalcing with the Win32 API calls) as (CreateFile, WriteFile, etc). All that I know , the Windows API does not support opening files in append mode in all cases.
maybe you will understand the problem the same that I do !!
[login to view URL]
I am a skilled C and C++ developer, and have some idea of what must be done to work around this issue of maximum file descriptors. I am experienced in Linux and Unix development as well as Windows APIs.
Thanks for your post on Freelancer, firstly I would like to say that we DO NOT ASK TO RELEASE PAYMENT till the entire project is complete. Only thing that we request is that you put in an escrow deposit that you do not release till the end of the project. We are based out of Los Angeles with branch offices in Chicago, San Jose and New Jersey. I would like to discuss your vision for your project in detail whenever you have a chance so please do let me know if you would like to proceed. Thanks and I hope to speak to you soon.
I have in mind to create a set of file access functions that work like the POSIX file access API but use the Win32 API, or with the proper #define just call the POSIX API. This way, after minimal changes (call the new functions rather than the POSIX functions), your code will use the native API when compiled for Windows or for any POSIX system.
i will do it thanks................................................................................................................................................
I have worked with squid proxy server on both linux and windows since past 3 years.
I have one of them working in my office also.
Hi concerned,
The installation of the squid on windows is simple, and later its configuration is also easy. I am sure there is a problem with the OS you are using.
Please get in touch with me on skype (singh.rahul.1603) where we can have a detailed discussion of the problem you are facing. Please note windows does allow append to text files.
Looking forward to work with you.
Regards
Rahul
Skype --- singh.rahul.1603