You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by achristianson <gi...@git.apache.org> on 2017/01/31 16:56:34 UTC

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

GitHub user achristianson opened a pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43

    MINIFI-183 Implemented ListenHTTP

    Implemented ListenHTTP. Supports the following features:
    
    - Connection keepalive (to be friendly with clients using connection pooling)
    - Two-way SSL
    - Configurable minimum TLS version
    - Pattern-based DN authorization
    - Pattern-based extraction of HTTP headers to FlowFile attrs

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/achristianson/nifi-minifi-cpp MINIFI-183

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi-minifi-cpp/pull/43.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #43
    
----
commit 3690e473bf71f91f12fe10affcfcc02b29beb6f0
Author: Andrew Christianson <an...@nextcentury.com>
Date:   2017-01-23T12:53:27Z

    MINIFI-183 Added civet 1.9.1 sources

commit 14b7cc0a77e10818dafca359668d713f6e2b86ae
Author: Andrew Christianson <an...@nextcentury.com>
Date:   2017-01-23T18:16:53Z

    MINIFI-183 Added onScheduled hook

commit 5c342fe4bc89a6fb863b353602bf61d162e7189e
Author: Andrew Christianson <an...@nextcentury.com>
Date:   2017-01-30T18:31:48Z

    MINIFI-183 Added initial two-way TLS-enabled ListenHTTP implementation

commit 572895ef5bd8be09b3f92594a13ac1094871776c
Author: Andrew Christianson <an...@nextcentury.com>
Date:   2017-01-31T16:40:32Z

    MINIFI-183 Implemented connection keepalive and headers as attributes pattern

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100844559
  
    --- Diff: libminifi/include/ProcessSessionFactory.h ---
    @@ -0,0 +1,52 @@
    +/**
    + * @file ProcessSessionFactory.h
    + * ProcessSessionFactory class declaration
    + *
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +#ifndef __PROCESS_SESSION_FACTORY_H__
    +#define __PROCESS_SESSION_FACTORY_H__
    +
    +#include <memory>
    +
    +#include "ProcessContext.h"
    +#include "ProcessSession.h"
    +
    +//! ProcessSessionFactory Class
    +class ProcessSessionFactory
    +{
    +public:
    +	//! Constructor
    +	/*!
    +	 * Create a new process session factory
    +	 */
    +	ProcessSessionFactory(ProcessContext *processContext) : _processContext(processContext) {}
    +
    +	//! Create the session
    +	std::unique_ptr<ProcessSession> createSession();
    --- End diff --
    
    It is my goal to make pointer usage clear. Thanks for making this exceptionally clear with unique_ptr here


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @phrocker @apiri Thanks for the feedback. All makes sense, but had one question re: civet as an ExternalProject. I did it as a thirdparty/ dir mainly to be consistent with how the current thirdparty dependencies are handled, e.g. yaml and leveldb. If we're OK with breaking that consistency, and perhaps adding future tickets to extract out the current thirdparty projects, then I'll move forward with that.
    
    The only other concern regarding the ExternalProject is that it does make it harder to build offline or if the remote host goes down. We would probably want to add some build instructions for how and where to place the external code manually to cover these build-time use cases.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100846792
  
    --- Diff: libminifi/CMakeLists.txt ---
    @@ -48,6 +49,19 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
     add_library(spdlog STATIC ${SPD_SOURCES})
     add_library(minifi STATIC ${SOURCES})
     
    +# Include Boost System
    +find_package(Boost COMPONENTS system REQUIRED)
    --- End diff --
    
    I assume this was included for civet? all uses of pointer management in libminifi appeared to be std::


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @phrocker Sounds good. I'll take a look at the rest and also fix this new merge conflict.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @apiri Will do. Expecting to get an updated PR out here in a couple minutes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/nifi-minifi-cpp/pull/43


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @apiri Done.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @achristianson I thought I created a ticket to break these out...or maybe it was an E-mail, but I think that's something we could discuss. When I sent a message to @apiri  earlier I said that the ExternalProject comment was mostly a desire and that this PR followed precedent and as such it's not a deal breaker, it's just a direction I would like to see things go. With that said, the operative word is suggestion and we can thus have a ticket to discuss this further. I'll create that ticket and we can discuss it there. 
    
    TL;DR on my thoughts: having people build offline isn't a big deal because that likely wouldn't happen very frequently. In cases where it is anticipated, you would likely need to move code to said device, and in this case we could codify the download so that it's easy to stage. In my opinion, worrying about those types of systems also brings the worry about those which don't have OpenSSL or boost readily available. Since we don't package those and those certainly aren't standard fare on many lightweight distros, are we really breaking the mold to have ExternalProjects?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    Created MINIFI-213 to have the CMake 3rd party discussion.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    We will need to update the LICENSE for the civetweb source inclusion.  That does not appear to be present currently.  My understanding is that we are not using any of the optional items in the build, so the following portion should be sufficient: https://github.com/civetweb/civetweb/blob/master/LICENSE.md#included-with-all-features  Please clarify if my understanding is incorrect.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r101504064
  
    --- Diff: libminifi/include/ProcessSessionFactory.h ---
    @@ -0,0 +1,52 @@
    +/**
    + * @file ProcessSessionFactory.h
    + * ProcessSessionFactory class declaration
    + *
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +#ifndef __PROCESS_SESSION_FACTORY_H__
    +#define __PROCESS_SESSION_FACTORY_H__
    +
    +#include <memory>
    +
    +#include "ProcessContext.h"
    +#include "ProcessSession.h"
    +
    +//! ProcessSessionFactory Class
    +class ProcessSessionFactory
    +{
    +public:
    +	//! Constructor
    +	/*!
    +	 * Create a new process session factory
    +	 */
    +	ProcessSessionFactory(ProcessContext *processContext) : _processContext(processContext) {}
    +
    +	//! Create the session
    +	std::unique_ptr<ProcessSession> createSession();
    --- End diff --
    
    @phrocker No problem. It makes it a lot easier to avoid memory management bugs.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100844761
  
    --- Diff: libminifi/include/ProcessSessionFactory.h ---
    @@ -0,0 +1,52 @@
    +/**
    + * @file ProcessSessionFactory.h
    + * ProcessSessionFactory class declaration
    + *
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +#ifndef __PROCESS_SESSION_FACTORY_H__
    +#define __PROCESS_SESSION_FACTORY_H__
    +
    +#include <memory>
    +
    +#include "ProcessContext.h"
    +#include "ProcessSession.h"
    +
    +//! ProcessSessionFactory Class
    +class ProcessSessionFactory
    +{
    +public:
    +	//! Constructor
    +	/*!
    +	 * Create a new process session factory
    +	 */
    +	ProcessSessionFactory(ProcessContext *processContext) : _processContext(processContext) {}
    --- End diff --
    
    Do you want to mark this explicit?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100846349
  
    --- Diff: libminifi/src/ThreadedSchedulingAgent.cpp ---
    @@ -64,11 +68,18 @@ void ThreadedSchedulingAgent::schedule(Processor *processor)
     		return;
     	}
     
    +	auto processContext = std::make_shared<ProcessContext>(processor);
    --- End diff --
    
    Why are you getting the raw (stored -- not managed ) pointer if you're making a shared ptr?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    Great, thanks for all the resources.  If you are not aware, the community also has the TLS Toolkit that is super helpful as well:  http://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#tls-generation-toolkit


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100847768
  
    --- Diff: libminifi/src/ListenHTTP.cpp ---
    @@ -0,0 +1,395 @@
    +/**
    + * @file ListenHTTP.cpp
    + * ListenHTTP class implementation
    + *
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +#include <sstream>
    +#include <stdio.h>
    +#include <string>
    +#include <iostream>
    +#include <fstream>
    +#include <uuid/uuid.h>
    +
    +#include <CivetServer.h>
    +
    +#include "ListenHTTP.h"
    +
    +#include "TimeUtil.h"
    +#include "ProcessContext.h"
    +#include "ProcessSession.h"
    +#include "ProcessSessionFactory.h"
    +
    +const std::string ListenHTTP::ProcessorName("ListenHTTP");
    +
    +Property ListenHTTP::BasePath("Base Path", "Base path for incoming connections", "contentListener");
    +Property ListenHTTP::Port("Listening Port", "The Port to listen on for incoming connections", "");
    +Property ListenHTTP::AuthorizedDNPattern("Authorized DN Pattern", "A Regular Expression to apply against the Distinguished Name of incoming connections. If the Pattern does not match the DN, the connection will be refused.", ".*");
    +Property ListenHTTP::SSLCertificate("SSL Certificate", "File containing PEM-formatted file including TLS/SSL certificate and key", "");
    +Property ListenHTTP::SSLCertificateAuthority("SSL Certificate Authority", "File containing trusted PEM-formatted certificates", "");
    +Property ListenHTTP::SSLVerifyPeer("SSL Verify Peer", "Whether or not to verify the client's certificate (yes/no)", "no");
    +Property ListenHTTP::SSLMinimumVersion("SSL Minimum Version", "Minimum TLS/SSL version allowed (SSL2, SSL3, TLS1.0, TLS1.1, TLS1.2)", "SSL2");
    +Property ListenHTTP::HeadersAsAttributesRegex("HTTP Headers to receive as Attributes (Regex)", "Specifies the Regular Expression that determines the names of HTTP Headers that should be passed along as FlowFile attributes", "");
    +
    +Relationship ListenHTTP::Success("success", "All files are routed to success");
    +
    +void ListenHTTP::initialize()
    +{
    +	_logger->log_info("Initializing ListenHTTP");
    +
    +	//! Set the supported properties
    +	std::set<Property> properties;
    +	properties.insert(BasePath);
    +	properties.insert(Port);
    +	properties.insert(AuthorizedDNPattern);
    +	properties.insert(SSLCertificate);
    +	properties.insert(SSLCertificateAuthority);
    +	properties.insert(SSLVerifyPeer);
    +	properties.insert(SSLMinimumVersion);
    +	properties.insert(HeadersAsAttributesRegex);
    +	setSupportedProperties(properties);
    +	//! Set the supported relationships
    +	std::set<Relationship> relationships;
    +	relationships.insert(Success);
    +	setSupportedRelationships(relationships);
    +}
    +
    +void ListenHTTP::onSchedule(ProcessContext *context, ProcessSessionFactory *sessionFactory)
    +{
    +
    +	std::string basePath;
    +
    +	if (!context->getProperty(BasePath.getName(), basePath))
    +	{
    +		_logger->log_info("%s attribute is missing, so default value of %s will be used",
    +				BasePath.getName().c_str(),
    +				BasePath.getValue().c_str());
    +		basePath = BasePath.getValue();
    +	}
    +
    +	basePath.insert(0, "/");
    +
    +	std::string listeningPort;
    +
    +	if (!context->getProperty(Port.getName(), listeningPort))
    +	{
    +		_logger->log_error("%s attribute is missing or invalid",
    +				Port.getName().c_str());
    +		return;
    +	}
    +
    +	std::string authDNPattern;
    +
    +	if (context->getProperty(AuthorizedDNPattern.getName(), authDNPattern) && !authDNPattern.empty())
    +	{
    +		_logger->log_info("ListenHTTP using %s: %s",
    +				AuthorizedDNPattern.getName().c_str(),
    +				authDNPattern.c_str());
    +	}
    +
    +	std::string sslCertFile;
    +
    +	if (context->getProperty(SSLCertificate.getName(), sslCertFile) && !sslCertFile.empty())
    +	{
    +		_logger->log_info("ListenHTTP using %s: %s",
    +				SSLCertificate.getName().c_str(),
    +				sslCertFile.c_str());
    +	}
    +
    +	// Read further TLS/SSL options only if TLS/SSL usage is implied by virtue of certificate value being set
    +	std::string sslCertAuthorityFile;
    +	std::string sslVerifyPeer;
    +	std::string sslMinVer;
    +
    +	if (!sslCertFile.empty())
    +	{
    +		if (context->getProperty(SSLCertificateAuthority.getName(), sslCertAuthorityFile)
    +				&& !sslCertAuthorityFile.empty())
    +		{
    +			_logger->log_info("ListenHTTP using %s: %s",
    +					SSLCertificateAuthority.getName().c_str(),
    +					sslCertAuthorityFile.c_str());
    +		}
    +
    +		if (context->getProperty(SSLVerifyPeer.getName(), sslVerifyPeer))
    +		{
    +			if (sslVerifyPeer.empty() || sslVerifyPeer.compare("no") == 0)
    +			{
    +				_logger->log_info("ListenHTTP will not verify peers");
    +			}
    +			else
    +			{
    +				_logger->log_info("ListenHTTP will verify peers");
    +			}
    +		}
    +		else
    +		{
    +			_logger->log_info("ListenHTTP will not verify peers");
    +		}
    +
    +		if (context->getProperty(SSLMinimumVersion.getName(), sslMinVer))
    +		{
    +			_logger->log_info("ListenHTTP using %s: %s",
    +					SSLMinimumVersion.getName().c_str(),
    +					sslMinVer.c_str());
    +		}
    +	}
    +
    +	std::string headersAsAttributesPattern;
    +
    +	if (context->getProperty(HeadersAsAttributesRegex.getName(),headersAsAttributesPattern)
    +			&& !headersAsAttributesPattern.empty())
    +	{
    +		_logger->log_info("ListenHTTP using %s: %s",
    +				HeadersAsAttributesRegex.getName().c_str(),
    +				headersAsAttributesPattern.c_str());
    +	}
    +
    +	auto numThreads = getMaxConcurrentTasks();
    +
    +	_logger->log_info("ListenHTTP starting HTTP server on port %s and path %s with %d threads",
    +			listeningPort.c_str(),
    +			basePath.c_str(),
    +			numThreads);
    +
    +	// Initialize web server
    +	std::vector<std::string> options;
    +	options.push_back("enable_keep_alive");
    +	options.push_back("yes");
    +	options.push_back("keep_alive_timeout_ms");
    +	options.push_back("15000");
    +	options.push_back("num_threads");
    +	options.push_back(std::to_string(numThreads));
    +
    +	if (sslCertFile.empty())
    +	{
    +		options.push_back("listening_ports");
    +		options.push_back(listeningPort);
    +	}
    +	else
    +	{
    +		listeningPort += "s";
    +		options.push_back("listening_ports");
    +		options.push_back(listeningPort);
    +
    +		options.push_back("ssl_certificate");
    +		options.push_back(sslCertFile);
    +
    +		if (!sslCertAuthorityFile.empty())
    +		{
    +			options.push_back("ssl_ca_file");
    +			options.push_back(sslCertAuthorityFile);
    +		}
    +
    +		if (sslVerifyPeer.empty() || sslVerifyPeer.compare("no") == 0)
    +		{
    +			options.push_back("ssl_verify_peer");
    +			options.push_back("no");
    +		}
    +		else
    +		{
    +			options.push_back("ssl_verify_peer");
    +			options.push_back("yes");
    +		}
    +
    +		if (sslMinVer.compare("SSL2") == 0)
    +		{
    +			options.push_back("ssl_protocol_version");
    +			options.push_back(std::to_string(0));
    +		}
    +		else if (sslMinVer.compare("SSL3") == 0)
    --- End diff --
    
    @apiri  Are we concerned about POODLE? Do we want to disallow any version < TLS1.2?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r102509921
  
    --- Diff: libminifi/CMakeLists.txt ---
    @@ -48,6 +49,19 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
     add_library(spdlog STATIC ${SPD_SOURCES})
     add_library(minifi STATIC ${SOURCES})
     
    +# Include Boost System
    +find_package(Boost COMPONENTS system REQUIRED)
    +target_link_libraries(minifi ${Boost_SYSTEM_LIBRARY})
    +
    +# Include libxml2
    --- End diff --
    
    Does civet need libxml2?  Otherwise this should no longer be needed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @apiri @phrocker Addressed the comments, updated the code, and rebased. The biggest thing is cleanly setting up an ExternalProject system, but I think that's best addressed under the ticket @phrocker created.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100846654
  
    --- Diff: CMakeLists.txt ---
    @@ -63,6 +66,8 @@ find_package(UUID REQUIRED)
     file(GLOB SPD_SOURCES "include/spdlog/*")
     
     add_subdirectory(thirdparty/yaml-cpp-yaml-cpp-0.5.3)
    +set(CIVETWEB_ENABLE_CXX ON CACHE BOOL "Enable civet C++ library")
    --- End diff --
    
    Could we download and then build  civet using ExternalProject instead of bundling it?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r102511352
  
    --- Diff: libminifi/CMakeLists.txt ---
    @@ -48,6 +49,19 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
     add_library(spdlog STATIC ${SPD_SOURCES})
     add_library(minifi STATIC ${SOURCES})
     
    +# Include Boost System
    +find_package(Boost COMPONENTS system REQUIRED)
    +target_link_libraries(minifi ${Boost_SYSTEM_LIBRARY})
    +
    +# Include libxml2
    --- End diff --
    
    @apiri I *think* this was something that was there already, not something required for civet. If you're sure it's not needed elsewhere, I can take it out and test to make sure civet doesn't need it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r101507876
  
    --- Diff: libminifi/src/ThreadedSchedulingAgent.cpp ---
    @@ -64,11 +68,18 @@ void ThreadedSchedulingAgent::schedule(Processor *processor)
     		return;
     	}
     
    +	auto processContext = std::make_shared<ProcessContext>(processor);
    --- End diff --
    
    @phrocker Mainly, creating a shared ProcessContext and SessionFactory which will be used in this thread as well as the threads created in the loop below. I wanted these objects to be cleaned up once they go out of scope in all threads. The raw pointers are only used to integrate with the existing Processor pointer that is passed-in, as well as passing raw pointers to the constructors of the new shared objects. I wanted to minimize function/constructor changes that might have impacts elsewhere in the code base. If we want to move more to having managed pointers across the code base, then some of this can be cleaned up.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @achristianson sounds fair concerning the ExternalProjects, will scope this out


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @apiri Sure thing. These cmds might help for part of your testing:
    
    ```sh
    dd if=/dev/urandom of=./testdat bs=1M count=1
    ```
    ```sh
    curl -vvv -X POST --data-binary @./testdat http://127.0.0.1:8888/contentListener
    ```
    
    Here's a link with info to create test TLS certs: http://stackoverflow.com/questions/14267010/how-to-create-self-signed-ssl-certificate-for-test-purposes
    
    Here's the flow I was testing with:
    
    ```markdown
    Flow Controller:
      name: MiNiFi Flow
    Processors:
        # - name: GetFile
        #   class: org.apache.nifi.processors.standard.GetFile
        #   max concurrent tasks: 1
        #   scheduling strategy: TIMER_DRIVEN
        #   scheduling period: 1 sec
        #   penalization period: 30 sec
        #   yield period: 1 sec
        #   run duration nanos: 0
        #   auto-terminated relationships list:
        #   Properties:
        #       Input Directory: /tmp/getfile
        #       Keep Source File: false
        #       File Filter: ".*"
        - name: ListenHTTP
          class: org.apache.nifi.processors.standard.ListenHTTP
          max concurrent tasks: 16
          scheduling strategy: TIMER_DRIVEN
          scheduling period: 1 sec
          penalization period: 30 sec
          yield period: 1 sec
          run duration nanos: 0
          auto-terminated relationships list:
          Properties:
              Listening Port: 8888
            #   Authorized DN Pattern: /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=localhost|/C=US/ST=Maryland/O=Internet Widgits Pty Ltd/CN=localhost
            #   SSL Certificate: /home/ubuntu/workspace/build/server.pem
            #   SSL Certificate Authority: /home/ubuntu/workspace/build/server.pem
            #   SSL Verify Peer: yes
            #   SSL Minimum Version: TLS1.2
              HTTP Headers to receive as Attributes (Regex): X-Test2.*
        - name: LogAttribute
          class: org.apache.nifi.processors.standard.LogAttribute
          max concurrent tasks: 1
          scheduling strategy: EVENT_DRIVEN
          scheduling period: 1 sec
          penalization period: 30 sec
          yield period: 1 sec
          run duration nanos: 0
          auto-terminated relationships list:
        - name: PutFile
          class: org.apache.nifi.processors.standard.PutFile
          max concurrent tasks: 1
          scheduling strategy: EVENT_DRIVEN
          scheduling period: 1 sec
          penalization period: 30 sec
          yield period: 1 sec
          run duration nanos: 0
          auto-terminated relationships list: ["success", "failure"]
          Properties:
              Output Directory: /tmp/putfile
    Connections:
        # - name: TransferFiles
        #   source name: GetFile
        #   source relationship name: success
        #   destination name: PutFile
        #   max work queue size: 0
        #   max work queue data size: 1 MB
        #   flowfile expiration: 60 sec
        - name: TransferHttpToLogAttribute
          source name: ListenHTTP
          source relationship name: success
          destination name: LogAttribute
          max work queue size: 0
          max work queue data size: 1 MB
          flowfile expiration: 60 sec
        - name: LogAttributeToPutFile
          source name: LogAttribute
          source relationship name: success
          destination name: PutFile
          max work queue size: 0
          max work queue data size: 1 MB
          flowfile expiration: 60 sec
    Remote Processing Groups: []
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r102514989
  
    --- Diff: libminifi/CMakeLists.txt ---
    @@ -48,6 +49,19 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
     add_library(spdlog STATIC ${SPD_SOURCES})
     add_library(minifi STATIC ${SOURCES})
     
    +# Include Boost System
    +find_package(Boost COMPONENTS system REQUIRED)
    +target_link_libraries(minifi ${Boost_SYSTEM_LIBRARY})
    +
    +# Include libxml2
    --- End diff --
    
    Okay, may have just been an artifact.  This was removed as per MINIFI-187 (https://github.com/apache/nifi-minifi-cpp/commit/0b022245d46371567077efd128cbf21a1657aa4d)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @achristianson feel free to update the LICENSE when you have the opportunity if you are going to adjust the libxml items


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r101504515
  
    --- Diff: libminifi/include/ProcessSessionFactory.h ---
    @@ -0,0 +1,52 @@
    +/**
    + * @file ProcessSessionFactory.h
    + * ProcessSessionFactory class declaration
    + *
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +#ifndef __PROCESS_SESSION_FACTORY_H__
    +#define __PROCESS_SESSION_FACTORY_H__
    +
    +#include <memory>
    +
    +#include "ProcessContext.h"
    +#include "ProcessSession.h"
    +
    +//! ProcessSessionFactory Class
    +class ProcessSessionFactory
    +{
    +public:
    +	//! Constructor
    +	/*!
    +	 * Create a new process session factory
    +	 */
    +	ProcessSessionFactory(ProcessContext *processContext) : _processContext(processContext) {}
    --- End diff --
    
    @phrocker Done.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100844292
  
    --- Diff: libminifi/include/ListenHTTP.h ---
    @@ -0,0 +1,116 @@
    +/**
    + * @file ListenHTTP.h
    + * ListenHTTP class declaration
    + *
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +#ifndef __LISTEN_HTTP_H__
    +#define __LISTEN_HTTP_H__
    +
    +#include <memory>
    +#include <regex>
    +
    +#include <CivetServer.h>
    +
    +#include "FlowFileRecord.h"
    +#include "Processor.h"
    +#include "ProcessSession.h"
    +
    +
    +//! ListenHTTP Class
    +class ListenHTTP : public Processor
    +{
    +public:
    +
    +	//! Constructor
    +	/*!
    +	 * Create a new processor
    +	 */
    +	ListenHTTP(std::string name, uuid_t uuid = NULL)
    +	: Processor(name, uuid)
    +	{
    +		_logger = Logger::getLogger();
    +	}
    +	//! Destructor
    +	~ListenHTTP()
    +	{
    +	}
    +	//! Processor Name
    +	static const std::string ProcessorName;
    +	//! Supported Properties
    +	static Property BasePath;
    +	static Property Port;
    +	static Property AuthorizedDNPattern;
    +	static Property SSLCertificate;
    +	static Property SSLCertificateAuthority;
    +	static Property SSLVerifyPeer;
    +	static Property SSLMinimumVersion;
    +	static Property HeadersAsAttributesRegex;
    +	//! Supported Relationships
    +	static Relationship Success;
    +
    +	void onTrigger(ProcessContext *context, ProcessSession *session);
    +	void initialize();
    +	void onSchedule(ProcessContext *context, ProcessSessionFactory *sessionFactory);
    +
    +	//! HTTP request handler
    +	class Handler : public CivetHandler
    +	{
    +	public:
    +		Handler(ProcessContext *context,
    +				ProcessSessionFactory *sessionFactory,
    +				std::string &&authDNPattern,
    +				std::string &&headersAsAttributesPattern);
    +		bool handlePost(CivetServer *server, struct mg_connection *conn);
    +
    +	private:
    +		//! Send HTTP 500 error response to client
    +		void sendErrorResponse(struct mg_connection *conn);
    +		//! Logger
    +		Logger *_logger;
    +
    +		std::regex _authDNRegex;
    +		std::regex _headersAsAttributesRegex;
    +		ProcessContext *_processContext;
    +		ProcessSessionFactory *_processSessionFactory;
    +	};
    +
    +	//! Write callback for transferring data from HTTP request to content repo
    +	class WriteCallback : public OutputStreamCallback
    +	{
    +	public:
    +		WriteCallback(struct mg_connection *conn, const struct mg_request_info *reqInfo);
    +		void process(std::ofstream *stream);
    +
    +	private:
    +		//! Logger
    +		Logger *_logger;
    +
    +		struct mg_connection *_conn;
    +		const struct mg_request_info *_reqInfo;
    +	};
    +
    +protected:
    +
    +private:
    +	//! Logger
    +	Logger *_logger;
    +
    +	std::unique_ptr<CivetServer> _server;
    --- End diff --
    
    You have no idea how happy I am to see you use unique_ptr :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    If you happen to update try  -Os ( don't feel like you need to in this PR ) https://issues.apache.org/jira/browse/MINIFI-197 is a corresponding ticket for it. I was going to do this and prune out warnings that weren't important. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r101502981
  
    --- Diff: libminifi/CMakeLists.txt ---
    @@ -48,6 +49,19 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
     add_library(spdlog STATIC ${SPD_SOURCES})
     add_library(minifi STATIC ${SOURCES})
     
    +# Include Boost System
    +find_package(Boost COMPONENTS system REQUIRED)
    --- End diff --
    
    @phrocker Yes, that's for civet.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @apiri Just resolved some conflicts with the master branch that emerged with other changes. Tested and should be good to go now.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100845905
  
    --- Diff: libminifi/CMakeLists.txt ---
    @@ -48,6 +49,19 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
     add_library(spdlog STATIC ${SPD_SOURCES})
     add_library(minifi STATIC ${SOURCES})
     
    +# Include Boost System
    +find_package(Boost COMPONENTS system REQUIRED)
    --- End diff --
    
    There seemed to be a little hesitation about using boost. My guess is that -Os added to flags won't actually cause the expected increase; however, it does potentially cause some bloat. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @achristianson great, thanks.  still working through testing functionality


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp pull request #43: MINIFI-183 Implemented ListenHTTP

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/43#discussion_r100845047
  
    --- Diff: libminifi/src/Processor.cpp ---
    @@ -439,31 +447,25 @@ bool Processor::flowFilesOutGoingFull()
     	return false;
     }
     
    -void Processor::onTrigger()
    +void Processor::onTrigger(ProcessContext *context, ProcessSessionFactory *sessionFactory)
     {
    -	ProcessContext *context = new ProcessContext(this);
    -	ProcessSession *session = new ProcessSession(context);
    +	auto session = sessionFactory->createSession();
    --- End diff --
    
    Thanks. I can remove this off of my my todo. fantastic!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @achristianson had some other things that interrupted, but looks good.  will get these squashed and merged.  appreciate you working through all the iterations with us!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by apiri <gi...@git.apache.org>.
Github user apiri commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    great, thanks.  will scope out shortly


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nifi-minifi-cpp issue #43: MINIFI-183 Implemented ListenHTTP

Posted by achristianson <gi...@git.apache.org>.
Github user achristianson commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/43
  
    @apiri Correct. Not using any of the optional features listed there. Want me to update the LICENSE file, or were you planning to do it? I don't mind, just want to avoid a merge conflict.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---