Opened 14 years ago

Closed 13 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:


(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
  (inet-connect fd
                (host-as-inet-host remote-host)
                (port-as-inet-port remote-port "tcp")
                  ((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 14 years ago by gb

  • Status changed from new to assigned

comment:2 Changed 14 years ago by gb

This should be fixed in r8939 and r8941.

comment:3 Changed 13 years ago by rme

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