What is Megaphone?

What is Megaphone?
The Megaphone project is about enhancing open source chat software. Specifically, the goal is to allow ejabberd to support 1,000,000 simultaneous users. See The Plan page for more details on how I plan to solve this problem. See the About this Blog page for more details on why I created this blog.

Wednesday, February 8, 2012

Blue Wednesday

Previously...
  • I finished testing the megaphone_sender component.
  • I tested the ability of the megaphone module to receive data.
  • I resolved to test from the client side of the API.

After resolving to test the client side I tried out megaphone:recv when some data was already present.  That failed.

I suppose I should feel vindicated that the test will save time in the long run, but for right now I just wish the thing worked.  Ah well.

I created some new test code for this attempt:

test_receive_read() ->
    start_test(),
    test_receiver(),
    recv(24).

The test sets up the client and ECM connections, sends a packet of data, then attempts to read that packet via the recv method.

When I tried this out the first time and it just sat there like a bump on a log, I tried putting in some debug statements and discovered that megaphone did not even think that any data had been received for that connection.  

That was as far as I got, so next time I will try to figure out where the data is disappearing to.

No comments:

Post a Comment