Skip to content

Commit

Permalink
Server sockets should be selectable for read.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 24, 2015
1 parent 9dd134b commit 09216aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-enxio</artifactId>
<version>0.7</version>
<version>0.8-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jnr/unixsocket/UnixServerSocketChannel.java
Expand Up @@ -40,7 +40,7 @@ public class UnixServerSocketChannel extends NativeServerSocketChannel {
}

UnixServerSocketChannel(SelectorProvider provider, int fd) {
super(provider, fd, SelectionKey.OP_ACCEPT);
super(provider, fd, SelectionKey.OP_ACCEPT | SelectionKey.OP_READ);
this.socket = new UnixServerSocket(this);
}

Expand Down

0 comments on commit 09216aa

Please sign in to comment.