← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2663: revert 2608 - set "Socket read buffer" to 0 on Win 8 for the time being

 

------------------------------------------------------------
revno: 2663
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2011-11-05 16:46:55 +0100
message:
  revert 2608 - set "Socket read buffer" to 0 on Win 8 for the time being
modified:
  dcpp/BufferedSocket.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/BufferedSocket.cpp'
--- dcpp/BufferedSocket.cpp	2011-10-22 16:41:13 +0000
+++ dcpp/BufferedSocket.cpp	2011-11-05 15:46:55 +0000
@@ -131,14 +131,14 @@
 		dcdebug("threadConnect attempt %s %s:%s\n", localPort.c_str(), aAddr.c_str(), aPort.c_str());
 		try {
 
-			setOptions();
-
 			if(proxy) {
 				sock->socksConnect(aAddr, aPort, LONG_TIMEOUT);
 			} else {
 				sock->connect(aAddr, aPort, localPort);
 			}
 
+			setOptions();
+
 			bool connSucceeded;
 			while(!(connSucceeded = sock->waitConnected(POLL_TIMEOUT)) && endTime >= GET_TICK()) {
 				if(disconnecting) return;