spring-projects / spring-projects/spring-integration

TCP Client Connection Factory Improvements

Open
#2,866 7 comments 1 reaction 1 assignee View on GitHub

@garyrussell is already working on this.

Since Mar 28, 2019.

in: TCP/UDP type: enhancement
Dominant language
Java
Stars
1.6k
Forks
1.2k
Avg merge
17h 48m
Merged PRs (30d)
62

Description

Add getConnection(String connectionId) so the client can select which connection it wants (if not open, return null).

Also singleUse serves 2 purposes when true

  • tells the CF to hand out a new connection each time getConnection() is called
  • tells the adapters to close the socket when the send/receive is complete (one-way) or after the reply is sent/received (request/reply).

Split this into two flags sharedConnection and closeAfterCompletion.

See https://stackoverflow.com/questions/55404438/programmatically-create-multiple-connections-for-tcpnetclientconnectionfactory/55404817#55404817

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.