473,549 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Win2k server - strange network problem

Hello all,

I've got a VERY strange network problem with Win2k Server and .NET.

I've got one central server (hub) getting raw binary data (files) from
many locations. Both server and clients are written in C#
The server is quite simple: two threads, one accepts new connections
and decides whether the client is authenticated to send data or not, and
the other thread serves already connected clients: performs a
Socket.Select and then gets one file from each client that is ready to
send data. Reading data uses Socket.Poll method so that I can set up a
timeout (to avoid DOS) on receiving.

On Win2k3 everything works well, but on Win2k Server the hub gets files
that have correct size but bad data inside: there comes the beginning
part of file (correct data), a sequence of zero bytes (about 200-300
bytes long) and then the rest of the data, up to the requested size.

The communication protocol is simple: client sends a fixed byte and
then four bytes of file length, after that file data. The server
verifies the fixed byte has correct value, reads the size, and then as
many bytes of file data as the client specified. So when the sequence of
zeros gets read the real file gets truncated and whole communication is
broken.

What can cause such a strange behaviour? Select? Poll? Anything else?

Thanks for any advice,
Grzegorz Kaczor

Jul 21 '05 #1
0 1523

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4014
by: Mike | last post by:
Any help would be greatly appreciated. Based on MS KB article Q248187 (HOWTO: Impersonate a User from Active Server Pages), I developed an ActiveX DLL (using VB6.0 Enterprise SP5), and deployed to a corporate web site under NT Server 4.0 SP6a /IIS4.0, expressly to retrieve Office documents contained on the server's DASD, but outside the...
2
3061
by: bbxrider | last post by:
win2k adv server/ iis5.0/vb6.0/ado and/or odbc connections on client machine i have an mdb on win2k adv server machine and want internet read/write to it from both a non-windows, red hat, webserver using asp/vbscript and a win xp/2000 machine with vb6.0/ado with or without odbc set up how do you set up the win2k server machine and/or mdb??? i...
6
2244
by: alanknipmeyer | last post by:
Hi, I`m in the process of migrating a Access 2002 (Run in 2000 mode) from Windows 98 to Win2K Server. It is a shared resource via a file share on the 98 Server. Client systems are Win98 with the shared drive mounted and the application run via the shared drive. I have tried once before, but came across some file locking issues. I thought...
0
292
by: Grzegorz Kaczor | last post by:
Hello all, I've got a VERY strange network problem with Win2k Server and .NET. I've got one central server (hub) getting raw binary data (files) from many locations. Both server and clients are written in C# The server is quite simple: two threads, one accepts new connections and decides whether the client is authenticated to send data or...
1
3585
by: gnusmsa | last post by:
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the local Administrators group on the server Workstation is on the same domain Logged into the workstation as the same domain user, which is also in the...
2
3632
by: neat2006 | last post by:
This is somewhat of a strange issue. Allow me to detail it as much as I can. We use the Blackboard Transaction System (BTS) for all students dinning services. The "ENVISION" server is Running Windows 2003 Server with Oracle 8+. All clients/registers are NCR Windows-based devices with the BTS system installed. They all come pre-imaged from...
0
1341
by: neat2006 | last post by:
This is somewhat of a strange issue. Allow me to detail it as much as I can. We use the Blackboard Transaction System (BTS) for all students dinning services. The "ENVISION" server is Running Windows 2003 Server with Oracle 8+. All clients/registers are NCR Windows-based devices with the BTS system installed. They all come pre-imaged from...
0
1776
by: neat2006 | last post by:
This is somewhat of a strange issue. Allow me to detail it as much as I can. We use the Blackboard Transaction System (BTS) for all students dinning services. The "ENVISION" server is Running Windows 2003 Server with Oracle 8+. All clients/registers are NCR Windows-based devices with the BTS system installed. They all come pre-imaged from...
2
3061
by: mcfly1204 | last post by:
Our network consists of two Win2k Server DC's, with several other Win2k3 servers. I cannot find where I can configure terminal services access within the GPO for the user in question. In Win2k3 server, it is \Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment. Is there an equivalent in Win2k GPO?
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.