Skip to content

Commit 5cedcc3

Browse files
committed
Fix appveyor build.
1 parent ad0dec4 commit 5cedcc3

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

appveyor.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
cache:
2-
- C:\Users\appveyor\.vagrant.d
3-
- C:\downloads
4-
51
configuration:
62
- Release
73

@@ -16,12 +12,14 @@ init:
1612
install:
1713
- ps: |
1814
cd C:\downloads
19-
if (-Not (Test-Path C:\downloads\VirtualBox-5.0.20-106931-Win.exe)){ Start-FileDownload "http://download.virtualbox.org/virtualbox/5.0.20/VirtualBox-5.0.20-106931-Win.exe" }
20-
if (-Not (Test-Path C:\downloads\vagrant_1.8.1.msi)){ Start-FileDownload "https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1.msi" }
21-
Start-Process -FilePath "VirtualBox-5.0.20-106931-Win.exe" -ArgumentList "-silent -logging -msiparams INSTALLDIR=C:\VBox" -Wait
22-
Start-Process -FilePath "msiexec.exe" -ArgumentList "/a vagrant_1.8.1.msi /qb TARGETDIR=C:\Vagrant" -Wait
15+
Start-FileDownload "http://download.virtualbox.org/virtualbox/5.1.2/VirtualBox-5.1.2-108956-Win.exe"
16+
Start-FileDownload "http://download.virtualbox.org/virtualbox/5.1.2/Oracle_VM_VirtualBox_Extension_Pack-5.1.2-108956.vbox-extpack"
17+
Start-FileDownload "https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5.msi"
18+
Start-Process -FilePath "VirtualBox-5.1.2-108956-Win.exe" -ArgumentList "-silent -logging -msiparams INSTALLDIR=C:\VBox" -Wait
19+
Start-Process -FilePath "msiexec.exe" -ArgumentList "/a vagrant_1.8.5.msi /qb TARGETDIR=C:\Vagrant" -Wait
2320
cd $env:APPVEYOR_BUILD_FOLDER
2421
- set PATH=C:\Vagrant\HashiCorp\Vagrant\bin;C:\VBox;%PATH%
22+
- VBoxManage extpack install C:\downloads\Oracle_VM_VirtualBox_Extension_Pack-5.1.2-108956.vbox-extpack
2523
- vagrant -v
2624
- VBoxManage -v
2725
- ssh -V
@@ -54,3 +52,7 @@ matrix:
5452

5553
artifacts:
5654
- path: src/Release/winnfsd.exe
55+
56+
# uncomment for rdp debugging
57+
# on_finish:
58+
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

src/DatagramSocket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ bool CDatagramSocket::Open(int nPort)
3030
return false;
3131
}
3232

33-
int snd_buffer = 1024 * 1024 * 8;
33+
int snd_buffer = 1024 * 1024 * 1;
3434
int snd_buffer_sizeof = (int)sizeof(snd_buffer);
3535
setsockopt(m_Socket, SOL_SOCKET, SO_SNDBUF, (char*)&snd_buffer, snd_buffer_sizeof);
36-
int rcv_buffer = 1024 * 1024 * 2;
36+
int rcv_buffer = 1024 * 1024 * 8;
3737
int rcv_buffer_sizeof = (int)sizeof(rcv_buffer);
3838
setsockopt(m_Socket, SOL_SOCKET, SO_RCVBUF, (char*)&rcv_buffer, rcv_buffer_sizeof);
3939

tests/Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Vagrant.configure("2") do |c|
44
c.vm.boot_timeout = 1800
55
c.vm.provider :virtualbox do |p|
66
p.customize ["modifyvm", :id, "--nictype1", "Am79C973"]
7-
p.customize ["modifyvm", :id, "--memory", "256"]
7+
p.customize ["modifyvm", :id, "--nictype2", "Am79C973"]
8+
p.customize ["modifyvm", :id, "--memory", "512"]
89
p.gui = true
910
end
1011
c.vm.network :private_network, ip: "192.168.56.128"

0 commit comments

Comments
 (0)