tumblr / colossus

I/O and Microservice library for Scala
Apache License 2.0
1.14k stars 96 forks source link

Possibility to reuse address #498

Closed sergP80 closed 7 years ago

sergP80 commented 7 years ago

Is there a posibility to reuse address, i.e. so-reuse-addr?

DanSimon commented 7 years ago

Not currently, but I think we should allow that and possibly some other server socket options to be set. I'll look into this a bit more and figure out exactly what we should support.

benblack86 commented 7 years ago

Can I get some more details on this? Is the idea that we allow server socket options to be set:

For example, adding to Server:

ssc.setOption(StandardSocketOptions.SO_REUSEADDR, true)

(but make it configurable)

dxuhuang commented 7 years ago

@DanSimon Did you find anything else we should make configurable?

dxuhuang commented 7 years ago

added this to ServerSettings. If this is absent in the config, it will be set to the system's default.