Opened 11 years ago

Closed 11 years ago

#261 closed defect (fixed)

:deadline argument to CCL:MAKE-SOCKET does not apply to connect()

Reported by: hans Owned by: gb
Priority: major Milestone:
Component: project hosting Version:
Keywords: Cc:

Description

(I need this for ITA)

The deadline specified as argument to CCL:MAKE-SOCKET is only applied to the stream after the connection has been established. This could be changed easily, I think:

(defun make-tcp-stream-socket (fd &rest keys
                                  &key remote-host
                                  remote-port
                                  connect-timeout
                                  deadline
                                  &allow-other-keys)
  (inet-connect fd
                (host-as-inet-host remote-host)
                (port-as-inet-port remote-port "tcp")
                (cond
                  ((and deadline connect-timeout)
                   (min (- deadline (get-internal-real-time)) connect-timeout))
                  (deadline (- deadline (get-internal-real-time)))
                  (connect-timeout connect-timeout)))
  (apply #'make-tcp-stream fd keys))

Change History (3)

comment:1 Changed 11 years ago by gb

  • Status changed from new to assigned

comment:2 Changed 11 years ago by gb

This should be fixed in r8939 and r8941.

comment:3 Changed 11 years ago by rme

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.