aboutsummaryrefslogtreecommitdiff
path: root/lib/vconn-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vconn-stream.c')
-rw-r--r--lib/vconn-stream.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c
index 468c112c..8470da3c 100644
--- a/lib/vconn-stream.c
+++ b/lib/vconn-stream.c
@@ -270,23 +270,7 @@ new_pstream_pvconn(const char *name, int fd,
size_t sa_len, struct vconn **),
struct pvconn **pvconnp)
{
- struct pstream_pvconn *ps;
- int retval;
-
- retval = set_nonblocking(fd);
- if (retval) {
- close(fd);
- return retval;
- }
-
- if (listen(fd, 10) < 0) {
- int error = errno;
- VLOG_ERR("%s: listen: %s", name, strerror(error));
- close(fd);
- return error;
- }
-
- ps = xmalloc(sizeof *ps);
+ struct pstream_pvconn *ps = xmalloc(sizeof *ps);
pvconn_init(&ps->pvconn, &pstream_pvconn_class, name);
ps->fd = fd;
ps->accept_cb = accept_cb;