Skip to content

Commit bc19ba0

Browse files
committed
Timeout increased
1 parent a90d2ba commit bc19ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/it/scala/client.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FtpClient(val ftpstate: FtpState) extends Matchers {
2525
private[client] var ctrl: ActorRef = _
2626
private var portOrPasv: Option[PortOrPasvMode] = None
2727
private val portPort = 6004
28-
implicit val timeout: Timeout = 1 second
28+
implicit val timeout: Timeout = 3 second
2929

3030
var replies: List[Reply] = _
3131
var connected = false
@@ -301,7 +301,7 @@ class DataConnector(client: FtpClient) extends Actor with ActorLogging {
301301
log.debug("Connected to remote address {}", remote)
302302
val ref = context.actorOf(DataConnection.props(remote, sender, sendOrReceive))
303303
sender ! Tcp.Register(ref)
304-
delay(300 milliseconds) //todo How to know when the connection is registered thus the date can be pushed to the server?
304+
delay(500 milliseconds) //todo How to know when the connection is registered thus the data can be pushed to the server?
305305
channel.foreach(ref !) //send data to the server
306306

307307
case Tcp.Bound(remote) =>

0 commit comments

Comments
 (0)