Skip to content

Commit

Permalink
Releasing v1/1/7, Resolves #5 (eventually)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkeh9 committed Nov 14, 2016
1 parent d76b429 commit b93980e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.1.6-{build}
version: 1.1.7-{build}
pull_requests:
do_not_increment_build_number: true
configuration: Release
Expand Down
12 changes: 9 additions & 3 deletions src/CoreFtp/FtpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,15 @@ internal async Task<Socket> ConnectDataSocketAsync()
Socket socket = null;
try
{
Logger?.LogDebug( $"Connecting data socket, {configuration.Host}:{passivePortNumber}" );
socket = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp );
socket.Connect( configuration.Host, passivePortNumber.Value );
Logger?.LogDebug( $"Connecting data socket, {configuration.Host}:{passivePortNumber.Value}" );

var ipEndpoint = await dnsResolver.ResolveAsync( configuration.Host, passivePortNumber.Value, configuration.IpVersion );

socket = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp )
{
ReceiveTimeout = configuration.TimeoutSeconds * 1000
};
socket.Connect( ipEndpoint );

return socket;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CoreFtp/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "CoreFTP",
"version": "1.1.6-*",
"version": "1.1.7-*",
"copyright": "Nick Briscoe 2016",
"language": "en",
"packOptions": {
Expand Down

0 comments on commit b93980e

Please sign in to comment.