Skip to content

Replace ssize_t by ddsrt_ssize_t#2339

Closed
eboasson wants to merge 8 commits intoeclipse-cyclonedds:masterfrom
eboasson:introduce-ddsrt-ssize-t
Closed

Replace ssize_t by ddsrt_ssize_t#2339
eboasson wants to merge 8 commits intoeclipse-cyclonedds:masterfrom
eboasson:introduce-ddsrt-ssize-t

Conversation

@eboasson
Copy link
Contributor

@eboasson eboasson commented Jan 20, 2026

This includes #2336
This is an alternative to #2340

Building the Iceoryx plugin on Windows fails because Iceoryx brings a different definition of ssize_t. This introduces ddsrt_ssize_t to avoid the collision.

The trouble is thatssize_t is somewhat of an abomination. Hence the alternative PR that eliminates its use in the core code. I'm inviting other people's opinion before deciding which way to go ...

Signed-off-by: Erik Boasson <eb@ilities.com>
No TCP server socket was created if the configured TCP port number is 0, instead of one
listening on a random port number.

Signed-off-by: Erik Boasson <eb@ilities.com>
Signed-off-by: Erik Boasson <eb@ilities.com>
Signed-off-by: Erik Boasson <eb@ilities.com>
We don't allocate server port numbers like we do with UDP, so adding them makes no sense.

Signed-off-by: Erik Boasson <eb@ilities.com>
Signed-off-by: Erik Boasson <eb@ilities.com>
There are a number of problems with the TCP implementation that are caused by a bad
design. The problems are various:

* ownership of connections
* handling of disconnects
* potential blocking at bad times

fixing the requires a wholesale rewrite. It does work reasonably well in somewhat benign
settings, and it has on occasion helped save the day. Disabling by default minimises the
risk while retaining something that people may have been using.

Signed-off-by: Erik Boasson <eb@ilities.com>
This is for compatibility building the Iceoryx plugin on Windows, because Iceoryx uses a
different (and I believe incorrect) definition of ssize_t.

Signed-off-by: Erik Boasson <eb@ilities.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant