[jira] [Updated] (THRIFT-1159) THttpClient->Flush() issue (connection thru proxy)
[ https://issues.apache.org/jira/browse/THRIFT-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ag9 updated THRIFT-1159: Patch Info: [Patch Available] > THttpClient->Flush() issue (connection thru proxy) > -- > > Key: THRIFT-1159 > URL: https://issues.apache.org/jira/browse/THRIFT-1159 > Project: Thrift > Issue Type: Bug > Components: C# - Library > Environment: w2k sp4, .net2 >Reporter: ag9 >Priority: Minor > Labels: thrift > Attachments: THttpClient.cs > > Original Estimate: 12h > Remaining Estimate: 12h > > *1)* Issue with *timeout* at the moment of call *THttpClient->Flush()* when I > try to get data thru *proxy*. > Prerequestites: clent(c# thrift) before proxy, we resource (in my case > http://google.com) > Code: > {code:java} > class Program { >static void Main(string[] args) { > Uri uri = new Uri("http://google.com";); > TTransport transport = new THttpClient(uri); > transport.Flush(); >} > } > {code} > At the moment of call the method *transport.Flush();* just goes to sleep > forever (in my app). > Issue is locates in the: file *Transport/THttpClient.cs -> method > CreateRequest()* > code: > {code:java} > connection.Proxy = null; > {code} > The lib should set state of proxy using some methods like to: > use default proxy - property WebRequest.DefaultWebProxy from namespace > System.Net > add new property or methods with Proxy object > probably use a method of declaring an attribute in C# - to write own custom > attribute(s) for class THttpClient; it's be able manage state of object > inside without usage of some xml config files > *2)* *Timeout period* is not set by default. > Actually timeout period set to *0* > Code (file Transport/THttpClient.cs): > {code:java} > private int connectTimeout = 0; > private int readTimeout = 0; > {code} > Need to set value of timeout by default like *15* seconds instead of infinite > interval. > *3)* *HttpWebRequest connection properties* sets by default > Code (file Transport/THttpClient.cs -> method CreateRequest()): > {code:java} > connection.ContentType = "application/x-thrift"; > connection.Accept = "application/x-thrift"; > connection.UserAgent = "C#/THttpClient"; > connection.Method = "POST"; > connection.ProtocolVersion = HttpVersion.Version10; > {code} > But need to *have a way to configure* it options thru object or class > attributes in client code -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1159) THttpClient->Flush() issue (connection thru proxy)
[ https://issues.apache.org/jira/browse/THRIFT-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029736#comment-13029736 ] ag9 commented on THRIFT-1159: - Fixed version of *THttpClient.cs* above *in attachment* > THttpClient->Flush() issue (connection thru proxy) > -- > > Key: THRIFT-1159 > URL: https://issues.apache.org/jira/browse/THRIFT-1159 > Project: Thrift > Issue Type: Bug > Components: C# - Library > Environment: w2k sp4, .net2 >Reporter: ag9 >Priority: Minor > Labels: thrift > Attachments: THttpClient.cs > > Original Estimate: 12h > Remaining Estimate: 12h > > *1)* Issue with *timeout* at the moment of call *THttpClient->Flush()* when I > try to get data thru *proxy*. > Prerequestites: clent(c# thrift) before proxy, we resource (in my case > http://google.com) > Code: > {code:java} > class Program { >static void Main(string[] args) { > Uri uri = new Uri("http://google.com";); > TTransport transport = new THttpClient(uri); > transport.Flush(); >} > } > {code} > At the moment of call the method *transport.Flush();* just goes to sleep > forever (in my app). > Issue is locates in the: file *Transport/THttpClient.cs -> method > CreateRequest()* > code: > {code:java} > connection.Proxy = null; > {code} > The lib should set state of proxy using some methods like to: > use default proxy - property WebRequest.DefaultWebProxy from namespace > System.Net > add new property or methods with Proxy object > probably use a method of declaring an attribute in C# - to write own custom > attribute(s) for class THttpClient; it's be able manage state of object > inside without usage of some xml config files > *2)* *Timeout period* is not set by default. > Actually timeout period set to *0* > Code (file Transport/THttpClient.cs): > {code:java} > private int connectTimeout = 0; > private int readTimeout = 0; > {code} > Need to set value of timeout by default like *15* seconds instead of infinite > interval. > *3)* *HttpWebRequest connection properties* sets by default > Code (file Transport/THttpClient.cs -> method CreateRequest()): > {code:java} > connection.ContentType = "application/x-thrift"; > connection.Accept = "application/x-thrift"; > connection.UserAgent = "C#/THttpClient"; > connection.Method = "POST"; > connection.ProtocolVersion = HttpVersion.Version10; > {code} > But need to *have a way to configure* it options thru object or class > attributes in client code -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1123) Patch to compile Thrift server and client for vc++ 9.0 and 10.0
[ https://issues.apache.org/jira/browse/THRIFT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029644#comment-13029644 ] Ken Smith commented on THRIFT-1123: --- Thanks, Deepak. That worked great. > Patch to compile Thrift server and client for vc++ 9.0 and 10.0 > --- > > Key: THRIFT-1123 > URL: https://issues.apache.org/jira/browse/THRIFT-1123 > Project: Thrift > Issue Type: Improvement > Components: C++ - Library > Environment: Windows XP 32bit, vc++ 9.0, 10.0 >Reporter: Dragan Okiljevic >Priority: Trivial > Fix For: 0.7 > > Attachments: > additional_thrift_cpp_visual_studio_2008_and_2010_endians_patch(concerning_ticket_1123_and_possibly_1031_patches).patch, > thrift_msvc_client_and_server.patch > > > Extension of THRIFT-1031 patch published by James Dickson > This patch is intended to provide Thrift C/C++ functionality on WIN32 > platforms. > The implementation is built on top of the patch "Patch to compile Thrift for > vc++ 9.0 and 10.0" by James Dickson published as THRIFT-1031. I just used > this code and ported more Thrieft C/C++ to WIN32 and added them to original > VC projects created in THRIFT-1031. > I express my gratitude to Mr. Dickson as his post gave me the roadmap how to > do the additional changes, that I hope, would be useful for the rest of the > community too. > Besides client capabilities enabled in THRIFT-1031, the library can now be > used for building Thrift servers and using concurrency features. The dir/file > structure from THRIFT-1031 and usage of Config.h header for providing support > for both WIN32 and *NIX remains. > The implementation was tested briefly on MSVC2008, MSVC2010 and Ubuntu, > communicating between C/C++ clients and servers and Java clients and servers. > As the author needs all of this functionality for one of his projects, the > testing and debugging will continue. > Revision 1086435 from March, 28, 2011. was used for development and creation > of patch, but it should be possible to apply it on current trunk revision as > long as no changes are made to patched files in trunk. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1123) Patch to compile Thrift server and client for vc++ 9.0 and 10.0
[ https://issues.apache.org/jira/browse/THRIFT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029612#comment-13029612 ] Deepak Muley commented on THRIFT-1123: -- As per the readme file which is located in the build_windows directory, this patch has a dependancy on pthreads on WIN32 (its a open source project, u will find on googling) library and boost APIs. Readme file also mentions that you needs to create the THRIFT_PARTY environment variable and put corresponding libraries there. if you have them at some other place then you can change the respective paths in the project settings. Hope that help. I am able to compile this patch on windows successfully. > Patch to compile Thrift server and client for vc++ 9.0 and 10.0 > --- > > Key: THRIFT-1123 > URL: https://issues.apache.org/jira/browse/THRIFT-1123 > Project: Thrift > Issue Type: Improvement > Components: C++ - Library > Environment: Windows XP 32bit, vc++ 9.0, 10.0 >Reporter: Dragan Okiljevic >Priority: Trivial > Fix For: 0.7 > > Attachments: > additional_thrift_cpp_visual_studio_2008_and_2010_endians_patch(concerning_ticket_1123_and_possibly_1031_patches).patch, > thrift_msvc_client_and_server.patch > > > Extension of THRIFT-1031 patch published by James Dickson > This patch is intended to provide Thrift C/C++ functionality on WIN32 > platforms. > The implementation is built on top of the patch "Patch to compile Thrift for > vc++ 9.0 and 10.0" by James Dickson published as THRIFT-1031. I just used > this code and ported more Thrieft C/C++ to WIN32 and added them to original > VC projects created in THRIFT-1031. > I express my gratitude to Mr. Dickson as his post gave me the roadmap how to > do the additional changes, that I hope, would be useful for the rest of the > community too. > Besides client capabilities enabled in THRIFT-1031, the library can now be > used for building Thrift servers and using concurrency features. The dir/file > structure from THRIFT-1031 and usage of Config.h header for providing support > for both WIN32 and *NIX remains. > The implementation was tested briefly on MSVC2008, MSVC2010 and Ubuntu, > communicating between C/C++ clients and servers and Java clients and servers. > As the author needs all of this functionality for one of his projects, the > testing and debugging will continue. > Revision 1086435 from March, 28, 2011. was used for development and creation > of patch, but it should be possible to apply it on current trunk revision as > long as no changes are made to patched files in trunk. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1123) Patch to compile Thrift server and client for vc++ 9.0 and 10.0
[ https://issues.apache.org/jira/browse/THRIFT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029603#comment-13029603 ] Ken Smith commented on THRIFT-1123: --- I patched thrift (SVN rev 1099965) with the two patches attached to this ticket and when I try to build it using Visual C++ 2010 Express, I get the following error. -- Build started: Project: libthrift, Configuration: Debug Win32 -- TWinsockUtil.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory TWinsockSingleton.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\transport\twinsocksingleton.h(4): fatal error C1083: Cannot open include file: 'boost/noncopyable.hpp': No such file or directory TSocket.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory TServerSocket.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory TBufferTransports.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\transport\tbuffertransports.h(24): fatal error C1083: Cannot open include file: 'boost/scoped_array.hpp': No such file or directory TThreadedServer.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory TThreadPoolServer.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\concurrency\threadmanager.h(23): fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory TSimpleServer.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory Util.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory TimerManager.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory ThreadManager.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\concurrency\threadmanager.h(23): fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory PosixThreadFactory.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\concurrency\thread.h(23): fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory Mutex.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\concurrency\mutex.h(23): fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory Monitor.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory Thrift.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory TApplicationException.cpp c:\documents and settings\user\desktop\thrift-win32-patched\lib\cpp\src\config.h(25): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory Generating Code... == Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped == To try and fix it, I installed Windows Services for Unix 3.5 but that didn't help it find pthread.h. How do I fix this? > Patch to compile Thrift server and client for vc++ 9.0 and 10.0 > --- > > Key: THRIFT-1123 > URL: https://issues.apache.org/jira/browse/THRIFT-1123 > Project: Thrift > Issue Type: Improvement > Components: C++ - Library > Environment: Windows XP 32bit, vc++ 9.0, 10.0 >Reporter: Dragan Okiljevic >Priority: Trivial > Fix For: 0.7 > > Attachments: > additional_thrift_cpp_visual_studio_2008_and_2010_endians_patch(concerning_ticket_1123_and_possibly_1031_patches).patch, > thrift_msvc_client_and_server.patch > > > Extension of THRIFT-1031 patch published by James Dickson > This patch is intended to provide Thrift C/C++ functionality on WIN32 > platforms. > The implementation is built on top of the patch "Patch to compile Thrift for > vc++ 9.0 and 10.0" by James Dickson published as THRIFT-1031. I just used > this code and ported more Thrieft C/C++ to WIN32 and
[jira] [Commented] (THRIFT-1104) INSTALLDIRS should be included in configure script
[ https://issues.apache.org/jira/browse/THRIFT-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029342#comment-13029342 ] Hudson commented on THRIFT-1104: Integrated in Thrift #142 (See [https://builds.apache.org/hudson/job/Thrift/142/]) Thrift-1104: INSTALLDIRS should be included in configure script Client: perl, build process Patch: Dmitriy Kargapolov Adds INSTALLDIRS to configure to be able to specify a specific install location for perl since it does not use --prefix. > INSTALLDIRS should be included in configure script > -- > > Key: THRIFT-1104 > URL: https://issues.apache.org/jira/browse/THRIFT-1104 > Project: Thrift > Issue Type: Bug > Components: Build Process >Affects Versions: 0.7 >Reporter: Dmitriy Kargapolov >Assignee: Dmitriy Kargapolov > Fix For: 0.7 > > Attachments: perl_dirs.patch > > > There are two env variables in lib/perl/Makefile.am to run Makefile.PL: > INSTALLDIRS and PERL_PREFIX. Second one can be specified in the configure > run. But not the INSTALLDIRS. I found no easy way to specify it in the > command line during the build. > I suggest to add INSTALLDIRS parameter to the configure.ac. It will help to > customize build process for various platforms. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (THRIFT-1104) INSTALLDIRS should be included in configure script
[ https://issues.apache.org/jira/browse/THRIFT-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jake Farrell closed THRIFT-1104. Resolution: Fixed Thanks for the patch Dmitriy, committed against trunk. > INSTALLDIRS should be included in configure script > -- > > Key: THRIFT-1104 > URL: https://issues.apache.org/jira/browse/THRIFT-1104 > Project: Thrift > Issue Type: Bug > Components: Build Process >Affects Versions: 0.7 >Reporter: Dmitriy Kargapolov >Assignee: Dmitriy Kargapolov > Fix For: 0.7 > > Attachments: perl_dirs.patch > > > There are two env variables in lib/perl/Makefile.am to run Makefile.PL: > INSTALLDIRS and PERL_PREFIX. Second one can be specified in the configure > run. But not the INSTALLDIRS. I found no easy way to specify it in the > command line during the build. > I suggest to add INSTALLDIRS parameter to the configure.ac. It will help to > customize build process for various platforms. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (THRIFT-1104) INSTALLDIRS should be included in configure script
[ https://issues.apache.org/jira/browse/THRIFT-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jake Farrell updated THRIFT-1104: - Affects Version/s: 0.7 Fix Version/s: 0.7 Assignee: Dmitriy Kargapolov > INSTALLDIRS should be included in configure script > -- > > Key: THRIFT-1104 > URL: https://issues.apache.org/jira/browse/THRIFT-1104 > Project: Thrift > Issue Type: Bug > Components: Build Process >Affects Versions: 0.7 >Reporter: Dmitriy Kargapolov >Assignee: Dmitriy Kargapolov > Fix For: 0.7 > > Attachments: perl_dirs.patch > > > There are two env variables in lib/perl/Makefile.am to run Makefile.PL: > INSTALLDIRS and PERL_PREFIX. Second one can be specified in the configure > run. But not the INSTALLDIRS. I found no easy way to specify it in the > command line during the build. > I suggest to add INSTALLDIRS parameter to the configure.ac. It will help to > customize build process for various platforms. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira