[jira] Created: (LIVETRIBE-72) SLP - the unicast point-to-point sending doesn't check the MTU

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (LIVETRIBE-72) SLP - the unicast point-to-point sending doesn't check the MTU

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SLP - the unicast point-to-point sending doesn't check the MTU
--------------------------------------------------------------

                 Key: LIVETRIBE-72
                 URL: http://jira.codehaus.org/browse/LIVETRIBE-72
             Project: LiveTribe
          Issue Type: Bug
          Components: SLP
    Affects Versions: SLP 2.0.1
            Reporter: Nicholas White


This is in org.livetribe.slp.spi.sa.UDPSrvRplyPerformer:

    public void perform(InetSocketAddress remoteAddress, ServiceAgentInfo serviceAgent, Message message, List<? extends ServiceInfo> services)
    {
        // TODO: must be sure to fit the MTU in case of many services
        SrvRply srvRply = newSrvRply(serviceAgent, message, services);
        byte[] bytes = srvRply.serialize();
        udpConnector.unicastSend(serviceAgent.getHost(), remoteAddress, bytes);
    }

The UDPConnector indeed doesn't check the MTU before sending the packet - the receiver then truncates and throws an exception as the length field doesn't match the length of the packet.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email