C# :: .net - Socket Server - Concurrent Connections
Apr 23, 2011
I have made a socket server in C# for a flash game that I am developing, I got the code from somewhere and I am a beginner in c# and .net development . It works fine in practice when connections are made and the server functions correctly. Get 2 concurrent connections at the same time and we have a problem. here is the basic aspects of the socket server below: (alot taken out for obvious reasons) how can I alter this so that it can handle concurrent connections? Should I be threading each response?
[Code]...
View 4 Replies
Similar Posts:
May 6, 2010
What is the maximum number of concurrent connections possible in BlazeDS using only remoting service
View 2 Replies
Feb 23, 2012
I have been running FMIS 3.5 for about 18 months, and recently it started acting up even though I have not made any changes. After a while (sometimes days, sometimes hours), it starts rejecting new connections, but it allows existing connections to keep working. If I refresh my app, then I can't reconnect. The license I have is unlimited. Can anyone shed some light into why this is doing this and what I can do to fix it? Sometimes it happens when only a couple dozen people are online, and today it did it about 4 times with over 1500 people online.
View 1 Replies
Oct 6, 2011
I am trying to debug a socket connection issue between flash in a web browser and flash in a client type program. The connection is closing properly in the web, so I would like to understand how the web side of things work. Right now I can load up a remote flash file in a web browser and that triggers a connection ESTABLISHED stat when viewing with netstats -fn. When I close the dialog which runs some javascript to remove the flash from the dom, the connection stats goes to TIME_WAIT. Does the act of removing the flash from the html DOM sever the flash connection which triggers a TIME_WAIT state? How does that process work?
View 1 Replies
Mar 7, 2010
How to play mp3's from socket connections in Flash AS3?
I have some simple programm which is listening to some port (TCP).
I connect to it using as3 sockets and it starts sending me mp3 data
How to play that data?
View 1 Replies
Aug 19, 2010
I am trying to serve streaming video over a 10 mb network and using Adobe® Flash® Media Streaming Server 3.5. Here are the specs on the video.
Video:
Codec: On2 VP6
320x240px
frame rate: 30fps
400 kbps (VBR)
keyframe distance: 15
Audio:
Mono channel
96 kbps
How many of these I could serve up concurrently? Or is there a spec somewhere?
View 1 Replies
Oct 11, 2010
Can I play two flv from FMS at the same time with actionscript?
View 1 Replies
Aug 3, 2009
With the following recommended spec from Adobe website, how many concurrent users ? Flash Media Streaming Server system requirements OS : Windows Server 2003 SP2 or Windows 2008
H/W Requirements
- 3.2GHz Intel Pentium 4 Processor (dual Intel Xeon or faster recommended)
- 2GB RAM ( 4GB recommended)
- 1Gb Ethernet card
View 3 Replies
Jul 8, 2011
I have a setup where I have some edge servers (as in <Mode>remote</Mode>) that pull content from an origin server. I only want to allow RTMPE connections to the edge server. I'm trying to do this by using the <DisallowedProtocols> element on the origin server. I'm setting: <DisallowedProtocols>rtmp,rtmps,rtmpt</DisallowedProtocols>
in the relevant Vhost.xml on the origin server. However, when I do that, proxying through the edge server stops working. I get a "Connection attempt rejected by FMS server [ Server.Reject ] : Connection failed." from OSMFPlayer (which I'm using for testing) and these lines show up on the origin server's core.00.log file:
[Code]...
View 2 Replies
Feb 21, 2012
When concurrent users increases my a/v conent delivery to the client is very slow. or even drop. Feel breaks in the session. but when check my server rsourses, almost free. One more observation, when i liesten to the recorded stream everything seems to be fine like there is nothing oing bad in live session.
Is there somthing which is missing for concurrent users for FMS config file.
View 2 Replies
Feb 16, 2010
How is it possible to determine in advance the max number of simultaneous connection for my FMS?
View 2 Replies
Jun 29, 2010
The attached image shows 17 client connections. Unfortunately there are not 17 clients connected to that app. In fact, I add users to a userlist shared object in application.onConnect(), and that shared object only reports 6 connections. That is the accurate number of connected users.
Why the phantom connections? Even if I unload and reload the app, the 17 client connections return.
How can my userlist shared object and the client connection number be out of sync? This situation seems to be related in some way to an FMS memory problem that is cropping up all of a sudden. When I have larger numbers of connected clients - say 300, the client connections reported in the FMS console are ten times that - like 3,000 or more. Then the application is unloaded by FMS for being a memory hog.
The app itself is simple. It just stores each user in a user array and passes chat communication to and from these users. The last time this main.asc code was changed was 2/8/2010. No problems with it in the countless times we've used it since then. Why the sudden phantom FMS connections, memory hog behavior, and constant unloading of the app?
View 2 Replies
Jun 20, 2011
I am willing to make an online game client-server. That is, many clients are connected on the same server, and thus interact. The application used by clients is a swf (done in flash) and runs in a browser. My questions are: 1 - I can create the server in AIR? If yes, which of the classes are recommended to do this efficiently? 2 - What classes are recommended for clients (swfs) to communicate with the server efficiently? 3 - The transfer of data between the client and the server can only be accomplished through the TCP protocol?
View 2 Replies
Aug 14, 2011
URL...I am running application instance that implements publisher/subscriber on video streams. Application code is very thin and can be removed completetly if required. In a specific time, randomly, disconnect messages stopped happening which causes the folowing:
1. Streaming service shows decrease of bw per second
2. Users count is increasing linearly.
3. No disconnect messages apears on access.0x.log
View 6 Replies
Sep 7, 2011
I have FMS 4 and a videochat app (one-to-one), everything runs smoothly until about 750 users (it means about 1500 connections to fms), then I get a sudden drop in users connected to 300-400, no errors in the fms log and the cpu/memory usage is at about 25% just before this. I'm running Windows 2008 R2 Web (x64) and I've red somewhere that maybe this version of windows has some connection limit that could be the cause, but I've no idea of what could be happening.
View 2 Replies
Apr 10, 2012
How to set the maximum number of connections of FMS on the same IP?
View 3 Replies
Sep 10, 2009
If I am streaming at 256kbps how many connections can I get on a 100MBit port? I confess tnat I don't know the math
View 12 Replies
Mar 17, 2011
I have a FMS server running that I am hosting some VOD content on. I am using HTTP dynamic streaming to deliver this content. Everything runs fine from a technical standpoint, but I am unable to see the connection details in the Admin Console. I have loaded vod -> defaultinst under the applications tab in the console. No connection details populate.
View 1 Replies
Jun 4, 2011
I'd like to hear some opinions about using NetGroups VS. using direct p2p connections between everybody, considering there would either be 2,3 or 4 people max in the group.
View 1 Replies
Nov 26, 2009
We have a flex application communicating with our server. The flex app makes many HTTP requests (posts and gets) to the server, in many cases in parallel. We have been noticing that we get many dropped connections, experienced from the flex app. The server does not see any failed requests at all and is not under load. I am also suspecting that flex may be on-connection-drop, automatically retrying the POST or GET request, resulting in our server receiving the request twice.
View 2 Replies
Nov 23, 2009
Does FMS 3.5.2 in development impose restrictions via the origin of connections? That is, does it only allow localhost connections via ActionScript (NetConnection) or are external connections allowed?In other words, can I have FMS in dev mode on a dedicated server and then have my client code running on a different machine that opens connections to this development server?
View 2 Replies
Apr 11, 2012
In multiple instances, limiting the maximum number of connections for the same IP?You give me the answer is to limit a single instance, whether there is a way to limit the number of users of the entire connected to the FMS?
View 5 Replies
Oct 7, 2009
We have a custom application that is running on FMS. Server is dedicated just for fms, there is only one application running on the server, with more instances, average traffic is 3-15 simultaneous users.The problem is,server suddenly stops accepting connections (after 1-3 days from restart), from this point it is impossible to connect to any instance, and fms server must be restarted.When the server crashes, the admin console can see all open instances, can close instances, can restart fms. There is nothing logged, that would explain this sudden failure.Second problem is, cores are connected and disconnected too often, causing client to reconnect (takes 2-5 seconds).
Hardware: 4 x quadcore Intel(R) Xeon(R) CPU E7440 @ 2.40GHz, 32 GB ram
OS: CentOS release 5.3 (Final), kernel: 2.6.18-128.4.1.el5
cpu and mem usage: 1-5% max[code]...........
View 1 Replies
Dec 10, 2010
Server conf:
2 x Intel(R) Xeon(R) CPU L5410 @ 2.33GHz
16Gb RAM
2 Gbit ethernet channel
OS - Linux CentOS 5.5 x86_64
FMS4 Interactive
Live stream parameters:
320Ñ…240 qua_=87 bw_=200000 kf_=5 fps_=18
So, after approximately 600 connections to one stream video becomes choppy (periodically freeze, slow motions). CPU-usage at this time is 100-120% (maximum is 800%, 100% per each core), network usage is 500 Mbit/sec.But second live stream(with few connections) at this server looks fine simultaneously with 600 connections at first stream.Experiments with recommendation in "Configuring performance features" documentation chapter(enabling/disabling aggregate messages and configure the size of stream chunks) do not help.
View 2 Replies
Jan 9, 2011
I'm trying to find out how I can tell how many users are connected to the same FMS application in a flex application:
public function totalConnectedUsers():void{
lblText1.text = "There are a total of " + bindableUserVariable + " Users Connected to the Stream Now";
}
View 6 Replies
May 20, 2011
I've been trying to figure out FMS for about a week now. Because of company firewalls, all traffic must go through either port 80 or 443 (I configured this in FMS.ini). I also created a self-signed SSL certificate and configured the adaptor.xml file to use it. Nevertheless, here are the problems I am experiencing: For RTMPT & RTMPTE, I can't start more than 9 connections. Beforing configuring FMS to also use port 443, I could only get about 4 connections. Now I would like to say that I testing this between only two computers, the FMS server with apache web server and a client.why it will not at least start 10 connections which I know is the limit for the dev version? Also, when using RTMPS I can only start 1 connection. Why is that?
View 4 Replies
Jun 7, 2011
It stands to reason that an OS would have a memory limit for the FMS process. I have a video chat app to which I may need to connect 300,000 or more concurrent users. Has anyone done this? Would this break the bank? What's the most you've ever had connected at once?
The video portion of my app goes through a good CDN, so I don't think there's a problem there. But my chat room is all on one FMS instance. I see something in FMS docs in "configuring performance features" that warns, "Adobe recommends that you ensure that your total system memory usage does not exceed the process limit of your OS". Granted it's in the context of configuring media cache, but wouldn't the same apply to chat room size if the numbers get high enough?
View 5 Replies
Oct 10, 2009
I am working on the web base flash application I am trying to communicate with server through binary socket to the server through IP Address and Port using Action script 3.0 at the server side we are using java. I will like to send binary data string to the server in a clubbed single packet. I dont know the Action Script 3.0 as much.for this We will have to communicate through IP and Port only
View 1 Replies
Mar 1, 2010
I am involved in project managment for a large video conferncing project involving over 100k simultanous connection and most likely to be increased 4 times by next six months.While figuring out the scalability area ,it was concluded that smart selection of hardware and origin-edge clustering will be suited most. Well while studying this documentation says it supports thousands of calls but unfortunately I could not determine the actual numbers. Can you tell me how many edge server will be needed for 100k simultanous calls/number of sessions per edge server and will we need license (4500$) for each edge server?
View 2 Replies
Nov 27, 2010
I'm working on a flash MMO with a c# server. I have a simple messaging protocol for the sockets. When a client joins he sends out this:
[Code]...
View 2 Replies