Spray resolving only one IP per domain?

113 views
Skip to first unread message

Pablo Fernandez

unread,
Dec 30, 2013, 3:40:48 PM12/30/13
to spray...@googlegroups.com
Hello Spray,

Is there a reason why Spray resolves a domain to just a single IP address[1]? Wouldn't it be better to resolve all and then try them on connection-refused, connection-timeout (for GET requests only)?

I'm willing to patch it and send the PR if you guys are OK with that.


Johannes Rudolph

unread,
Jan 2, 2014, 6:55:51 AM1/2/14
to spray...@googlegroups.com
Hi Pablo,

interesting idea. I filed a ticket [1]. The place where the host is
resolved in the spray-can client is [2] (which is a bit non-obvious).

Johannes

[1] https://github.com/spray/spray/issues/746
[2] https://github.com/spray/spray/blob/d25b47f04170af032acf437813dabb3600d0afb8/spray-can/src/main/scala/spray/can/Http.scala#L51
> --
> You received this message because you are subscribed to the Google Groups
> "spray.io User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to spray-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

pablo fernandez

unread,
Jan 2, 2014, 8:39:38 AM1/2/14
to spray...@googlegroups.com
I'll be glad to send a PR with a fix if that's ok with you.



--
You received this message because you are subscribed to a topic in the Google Groups "spray.io User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spray-user/d6XNRVfjGpo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spray-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages