# DRB issue on polling and waiting

**URL:** <https://www.ruby-forum.com/t/drb-issue-on-polling-and-waiting/125733>\
**Category:** Ruby\
**Created:** [January 11, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/drb-issue-on-polling-and-waiting/125733 "2008-01-11T16:01:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [January 11, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/drb-issue-on-polling-and-waiting/125733/1 "2008-01-11T16:01:08Z")

</div>

I have a q on how drb works. Lets say, i run a chat server using drb  
at port 9000. If 2 clients try to connect to the port 9000 at the same  
time, how will the server act. will it keep 1 waiting or will it drop  
the request.

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [January 11, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/drb-issue-on-polling-and-waiting/125733/2 "2008-01-11T17:31:00Z")

</div>

On Jan 11, 2008, at 8:00 AM, Junkone wrote:

> I have a q on how drb works. Lets say, i run a chat server using drb  
> at port 9000. If 2 clients try to connect to the port 9000 at the same  
> time, how will the server act. will it keep 1 waiting or will it drop  
> the request.

handle each in a thread. in general your front/server object _needs_  
to be thread safe.

regards.
