[
https://issues.apache.org/jira/browse/THRIFT-4499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16640340#comment-16640340
]
James E. King III commented on THRIFT-4499:
-------------------------------------------
Thrift requests are stateless and thrift currently provides no facility for you
to correlate a request to a connection. To do this you will need to modify the
library. If I were going to do this in C++ I would stick some unique
connection identifier into TLS and then provide a way for the handler to get
it, and perhaps even to stuff something away in there as well, but when the
connection disappears all the TLS data would be removed (so it wouldn't leak).
> Remove Magic Number In TFIleTransport
> -------------------------------------
>
> Key: THRIFT-4499
> URL: https://issues.apache.org/jira/browse/THRIFT-4499
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Library
> Affects Versions: 0.11.0
> Reporter: BELUGA BEHR
> Assignee: James E. King III
> Priority: Trivial
> Fix For: 0.12.0
>
> Attachments: THRIFT-4499.1.patch
>
>
> Here, the buffer is hard-coded to 8192 (which matches the default value on
> most JDK implementations). You may wish to remove this magic number and let
> the JDK decide the size.
> https://github.com/apache/thrift/blob/19baeefd8c38d62085891d7956349601f79448b3/lib/java/src/org/apache/thrift/transport/TFileTransport.java#L369
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)