[ 
https://issues.apache.org/jira/browse/TS-4698?focusedWorklogId=26351&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-26351
 ]

ASF GitHub Bot logged work on TS-4698:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Aug/16 04:20
            Start Date: 12/Aug/16 04:20
    Worklog Time Spent: 10m 
      Work Description: Github user jpeach commented on a diff in the pull 
request:

    https://github.com/apache/trafficserver/pull/822#discussion_r74539983
  
    --- Diff: doc/developer-guide/api/functions/TSHttpTxnIsWebsocket.en.rst ---
    @@ -0,0 +1,45 @@
    +.. 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.
    +
    +.. default-domain:: c
    +
    +TSHttpTxnIsWebsocket
    +********************
    +
    +Test whether a request is attempting to initiate Websocket connection.
    +
    +Synopsis
    +========
    +
    +`#include <ts/ts.h>`
    +
    +.. function:: int TSHttpTxnIsWebsocket(TSHttpTxn txnp)
    +
    +Description
    +===========
    +
    +:func:`TSHttpTxnIsWebsocket` tests whether the HTTP request
    +has an `Upgrade` header with a value of `websocket`.
    --- End diff --
    
    Probably should abstract this a bit to simply say that this tests whether 
the transaction is a conforming WebSocket upgrade request.


Issue Time Tracking
-------------------

    Worklog Id:     (was: 26351)
    Time Spent: 1h 20m  (was: 1h 10m)

> Add an API call to detect websocket connections
> -----------------------------------------------
>
>                 Key: TS-4698
>                 URL: https://issues.apache.org/jira/browse/TS-4698
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>    Affects Versions: 7.0.0
>            Reporter: Oliver Goodman
>            Assignee: Oliver Goodman
>             Fix For: 7.0.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> It is possible for TS to terminate websocket connections using a server 
> intercept plugin but in order to do so the plugin needs a reliable way to 
> identify such connections. This information is known and used internally but 
> not AFAICT yet exposed via the TS API. It is here proposed that a simple call 
> be added to return this information.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to