[ 
https://issues.apache.org/jira/browse/MINIFI-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15878776#comment-15878776
 ] 

ASF GitHub Bot commented on MINIFI-183:
---------------------------------------

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: []
    ```


> Create ListenHTTP processor
> ---------------------------
>
>                 Key: MINIFI-183
>                 URL: https://issues.apache.org/jira/browse/MINIFI-183
>             Project: Apache NiFi MiNiFi
>          Issue Type: Task
>          Components: C++
>            Reporter: Andrew Christianson
>            Assignee: Andrew Christianson
>
> Create a ListenHTTP processor of similar design/function to the ListenHTTP in 
> the parent Apache NiFi project.
> Being a part of MiNiFi, the server should be very lightweight, handle 
> requests asynchronously, have optional threading, and should support 
> streaming of request/response content to minimize memory requirements.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to