[
https://issues.apache.org/jira/browse/TS-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284604#comment-14284604
]
ASF subversion and git services commented on TS-3307:
-----------------------------------------------------
Commit 4089b3952d9f811c1bd605b50f388ade8c991682 in trafficserver's branch
refs/heads/master from shinrich
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=4089b39 ]
TS-3307: TSVConnFdCreate does not allow non-socket file descriptor
> TSVConnFdCreate does not allow non-socket file descriptors
> ----------------------------------------------------------
>
> Key: TS-3307
> URL: https://issues.apache.org/jira/browse/TS-3307
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Susan Hinrichs
> Assignee: Susan Hinrichs
> Fix For: 5.3.0
>
> Attachments: eventfd.diff
>
>
> I was experimenting writing an interceptor plugin with an event file
> descriptor and separate means of reading and writing the actual data.
> The TSVconnFdCreate call failed because the fd I passed in was not a socket.
> Specifically, in UnixNetVConnection::connectUp, there is an attempt to get
> SO_TYPE from the file descriptor. If this call falls, the connectUp fails an
> ultimately the TSVConnFdCreate will fail.
> Once I removed the failure, the rest of the plugin worked. Since sock_type
> is only used when setting up the socket, it isn't really an issue in the case
> where the fd is passed in explicitly, so I don't think this check should fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)