socket /port issue with SUA only, (Full Version)

All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA



Message


shailishi -> socket /port issue with SUA only, (Mar. 11, '06, 5:43:09 AM)

I am ported some code to windows SFU and it worked fine but when i tried to run the same code in Windows2003 R2 SUA, i am getting weired issue. The code is actually a client /server kind of thing and uses pthread library. The server is able to recieve connection from mutliple client but can read data from only the client who created the connection first and select system call shows unexpected behaviour regarding status of sockets. The code is Ok since its working fine on SFU with windows 2000. I am not sure if thre is some problem with the SUA or i am missing somehing. Please reply
Thanks




breiter -> RE: socket /port issue with SUA only, (Mar. 11, '06, 9:55:42 PM)

I just discovered that select(2) ignores the timeout argument and does not block. Sounds like the issue might be related.




shailishi -> RE: socket /port issue with SUA only, (Mar. 12, '06, 4:27:53 AM)

Yes, i guess so....i saw very similiar unexpected behaviour for my case too. The select returns socket is ready to read but recv gets blocked and does not returns something. And also if i am making sockets nonblocking, situation is worst now. Now i can see some data coming on my sockets but i am getting same data again and again. Also not only same data ...but it creates the same connection on the sockets again and again.
FYI: this code works very well in SFU/Interix 3.5 without any changes & probelm
Do i need to set some option for the sockets ...very specific to Windows2003/SUA...
Thanks




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.016