# \[a question related to es code\]org.elasticsearch.transport.netty.NettyTransport in 2.X

**URL:** <https://discuss.elastic.co/t/a-question-related-to-es-code-org-elasticsearch-transport-netty-nettytransport-in-2-x/59168>\
**Category:** Elasticsearch\
**Created:** [August 29, 2016, 10:57am UTC](https://discuss.elastic.co/t/a-question-related-to-es-code-org-elasticsearch-transport-netty-nettytransport-in-2-x/59168 "2016-08-29T10:57:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Post date:** [August 29, 2016, 10:57am UTC](https://discuss.elastic.co/t/a-question-related-to-es-code-org-elasticsearch-transport-netty-nettytransport-in-2-x/59168/1 "2016-08-29T10:57:55Z")

</div>

private void createServerBootstrap(String name, Settings settings) {  
...  
final ThreadFactory bossFactory = daemonThreadFactory(this.settings, HTTP\_SERVER\_BOSS\_THREAD\_NAME\_PREFIX, name);  
final ThreadFactory workerFactory = daemonThreadFactory(this.settings, HTTP\_SERVER\_WORKER\_THREAD\_NAME\_PREFIX, name);  
...  
}

why give it http server prefix while it is really bound to tcp port and rather a tcp server?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [August 30, 2016, 10:45am UTC](https://discuss.elastic.co/t/a-question-related-to-es-code-org-elasticsearch-transport-netty-nettytransport-in-2-x/59168/2 "2016-08-30T10:45:04Z")

</div>

Hi @makeyang,

you're right. Maybe this was a copy&paste error during a refactoring. The issue seems to be also on master (i.e. ES 5) (although the affected contants are in `TcpTransport` now). Would you mind to create an issue for this on Github?

Daniel

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/a-question-related-to-es-code-org-elasticsearch-transport-netty-nettytransport-in-2-x/59168/3 "2017-07-05T22:24:06Z")

</div>

Closed on July 5, 2017, 10:24pm UTC


