Commit graph

35 commits

Author SHA1 Message Date
Johan Andrén
1df2c2d53a
UdpConnectedIntegrationSpec dns fail fix (#28558)
* More generous timeout for dns resolution failure #28133

* Use async-dns as workaround for JDK/glibc/whatever resolution bug

* Handle Async DNS lookup failure in UDP and TCP connections
2020-02-20 14:03:50 +01:00
Arnout Engelen
27e91b00d0
Report UDP connection error for negatively-cached hostnames (#28444)
When creating an UDP connection for a hostname for which we already have a
'negative cache' saying it cannot be resolved, report that as an error
as well.

Noticed while looking at #28133, but looking closer at the logs that seems
like a different problem. Added logging that might make it easier to diagnose.
2020-01-07 08:19:14 +01:00
Helena Edelson
6bf20f4117 Update all copyright headers to 2020 after new year's #27881 (#28434) 2020-01-02 13:24:59 +01:00
Christopher Batey
4a72985e48 Expose new DNS protocol via the DNS extension (#28009)
* TCP/UDP to use new protocol
* Change other parts of Akka to use new protocol
* Mention in migration guide
2019-10-16 10:22:01 +02:00
Johan Andrén
8348bcc5b8
Fix for UdpConnected actor going away on PortUnreachableException #26903 2019-05-14 15:20:41 +02:00
Auto Format
75579bed17 format source with scalafmt, #26511 2019-03-15 10:23:46 +01:00
Auto Format
ce404e4f53 format source with scalafmt 2019-03-11 16:58:55 +01:00
Patrik Nordwall
5c96a5f556 replace unicode arrows
* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
2019-03-11 16:58:51 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
Helena Edelson
7e614a595f
Fix compiler warnings akka-actor (#26095)
[# 26089](https://github.com/akka/akka/issues/26089)
2018-12-14 17:48:08 -05:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Patrik Nordwall
b30e460be7 = #17342 Make 2.4 binary compatible with 2.3
(cherry picked from commit 89af8bdb90)

* remove final identifier in serializers

i* revert/deprecate ProtobufSerializer.ARRAY_OF_BYTE_ARRAY

* adding back compatible empty constructor in serializers

* make FSM.State compatible

* add back ActorPath.ElementRegex

* revert SocketOption changes and add SocketOptionV2
  see a6d3704ef6

* problem filter for ActorSystem and ActorPath

* problem filter for ByteString

* problem filter for deprecated Timeout methods

* BalancingPool companion

* ask

* problem filter for ActorDSL

* event bus

* exclude hasSubscriptions

* exclude some problems in testkit

* boundAddress and addressFromSocketAddress

* Pool nrOfInstances

* PromiseActorRef

* check with 2.3.9

* migration guide note

* explicit exclude of final class problems
2015-05-11 21:11:52 +02:00
Julian Tescher
00f6a58e7c Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00
Ilya Epifanov
5954302658 +act #15502: Pluggable DNS resolution in akka-io 2014-07-29 00:12:58 +04:00
Michael R. Maletich
a6d3704ef6 !act #13490 Changed the callback to SocketOption to accept a channel instead of a Socket, this allows for using the nio features.
For example in Java 7 you can now join a multicast group:

case class JoinGroup(group: InetAddress, networkInterface: NetworkInterface) extends SocketOption {

  override def afterConnect(c: DatagramChannel): Unit = {
    c.join(group, networkInterface)
  }
}

  IO(Udp) ! Udp.Bind(self, new InetSocketAddress(MulticastListener.port),
    options=List(ReuseAddress(true),
      JoinGroup(MulticastListener.group, MulticastListener.interf)))

Other minor changes:

 - changed all methods in SocketOption to take a Channel instead of a Socket.  The socket can be gotten from the Channel but not the reverse.
 - all methods that are called before the bind are now called beforeBind for consistency.
 - All network connections now call the beforeBind and afterConnect.
2014-07-22 20:22:53 -05:00
Adam Voss
cce29dfa51 Changes all occurances of Typesafe copyright to extend to 2014. 2014-02-04 21:20:09 -06:00
Patrik Nordwall
a11fb1dafc =act #3572 Add parens to sender
* because it is not referentially transparent; normally we reserved parens for
  side-effecting code but given how people thoughtlessly close over it we revised
  that that decision for sender
* caller can still omit parens
2014-01-17 18:21:14 +01:00
Patrik Nordwall
9b59187816 tone down error logging in IO layer, see #3386
* Made defaultDecider available in SupervisorStrategy,
  turned out that I didn't need it but I think it could be
  good anyway, e.g.
  override def supervisorStrategy = OneForOneStrategy(
    enableLogging = false)(SupervisorStrategy.defaultDecider)
* Verified the following scenarios:
  - client connection failure
  - server bind failure
  - kill client (peer closed)
  - kill server (peer closed)
2013-05-31 14:32:08 +02:00
Roland
b6efd467e8 add ScalaDocs and correct UDP docs, see 3268 2013-05-26 18:29:23 +02:00
Mathias
0e0a95ff95 io: remove SelectionKey lookup and reduce IO-layer-internal message volume 2013-05-13 14:14:49 +02:00
Björn Antonsson
539df2e98a Enforce mailbox types on System actors. See #3273 2013-05-03 11:05:32 +02:00
Mathias
efaef76444 Some cleanup 2013-04-11 14:34:53 +02:00
Roland
309f2c2f91 rename UdpFF->Udp and the other UdpConnected, see #3058 2013-04-04 09:04:30 +02:00
Roland
6d61a59a0f add INTERNAL API markers and explicit return types 2013-02-15 13:11:35 +01:00
Endre Sándor Varga
e9da097621 Fixed according to revew comments 2013-02-10 13:52:52 +01:00
Endre Sándor Varga
74396246ce Connection based UDP fixed
- SelectionHandler unregisters only selected interests, not all.
 - Fixed tests to be properly ignored on Windows
2013-02-07 17:54:42 +01:00
Endre Sándor Varga
6f0d0911a9 Bind failures are now explicitly reported instead of swallowed 2013-02-06 12:17:52 +01:00
Endre Sándor Varga
116dcc0e54 Various minor changes:
- added forwarders to SO objects to Inet
 - added batch read support for UDP
 - changed write for UDP
 - SimpleSender is now registered as everone else
2013-02-06 11:44:21 +01:00
Endre Sándor Varga
e2ce4644f1 Added connection style UDP (not working fully yet) 2013-02-05 15:48:29 +01:00